zkt25/z2/start-app.sh

20 lines
421 B
Bash

#!/bin/bash
# Create the Namespace
minikube kubectl -- create namespace my-namespace
# Apply the Deployment
minikube kubectl -- apply -f deployment.yaml
# Apply the Service
minikube kubectl -- apply -f service.yaml
# Apply the StatefulSet
minikube kubectl -- apply -f statefulset.yaml
# Apply the Database Deployment
kubectl apply -f db-deployment.yaml
# Apply the Database Service
kubectl apply -f db-service.yaml