zkt25/z2/myproject/start-app.sh
2025-04-15 21:57:57 +02:00

16 lines
337 B
Bash
Executable File

#!/bin/bash
# Apply the namespace
kubectl apply -f k8s/namespace.yaml
# Apply the StatefulSet and related objects
kubectl apply -f k8s/statefulset.yaml
# Apply the Django Deployment
kubectl apply -f k8s/deployment.yaml
# Apply the Django Service
kubectl apply -f k8s/service.yaml
echo "All Kubernetes objects created successfully."