zkt25/z2/start-app.sh

15 lines
375 B
Bash

#!/bin/bash
# Create the namespace if it doesn't already exist
kubectl apply -f namespace.yaml
# Create the statefulset for the database
kubectl apply -f statefulset.yaml
# Create the deployment for the application
kubectl apply -f deployment.yaml
# Create the services
kubectl apply -f service.yaml
echo "Resources created. You can access on http://192.168.49.2:30080/"