zkt21/sk1/start-app.sh

18 lines
513 B
Bash
Raw Normal View History

2021-05-24 17:48:55 +00:00
#!/bin/bash
#tento script pripravi a spusti vsetko, po jeho ukonceni je aplikacia beziaca a funkcna
#predpoklada sa ze kubectl a minikube su spustene
echo "*Starting setup*"
echo "*Deploying postgres*"
kubectl apply -f postgres-deployment.yaml
echo "*Deploying nginx*"
kubectl apply -f nginx-deployment.yaml
echo "*Deploying data*"
kubectl apply -f data-deployment.yaml
echo "*Deploying web*"
kubectl apply -f web-deployment.yaml
echo "*Deploying configmap*"
kubectl apply -f env-configmap.yaml
echo "*Done*"