zkt25/z2/start-app.sh
2025-04-02 08:39:41 +00:00

17 lines
393 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
# Display created resources
echo "Resources created:"
kubectl get all -n myapp-namespace