zkt25/z2-failed/start-app.sh

19 lines
487 B
Bash
Executable File

#!/bin/bash
# start minikube
minikube start
#create namespace
kubectl apply -f namespace.yaml
# apply all Kubernetes YAML files
kubectl apply -f deployment.yaml -n visitor-app
kubectl apply -f web-deployment.yaml -n visitor-app
kubectl apply -f statefulset.yaml -n visitor-app
kubectl apply -f service.yaml -n visitor-app
kubectl apply -f web-service.yaml -n visitor-app
kubectl apply -f redis-service.yaml -n visitor-app
# Output web service URL
#minikube service web-service --url