17 lines
393 B
Bash
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 |