Add 'sk1/prepare-app.sh'

This commit is contained in:
Ondrej Ladomirják 2022-05-14 11:53:26 +00:00
parent 92b443245c
commit dcdbdf11bb

16
sk1/prepare-app.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
az group create --name skuskaZKT --location eastasia
az aks create --resource-group skuskaZKT --name mycluster --node-count 1 --enable-addons monitoring --generate-ssh-keys
az aks get-credentials --resource-group skuskaZKT --name mycluster
kubectl apply -f namespace.yaml
kubectl apply -f pv.yaml
kubectl apply -f mongo-configmap.yaml
kubectl apply -f mongo-secret.yaml
kubectl apply -f mongo-service.yaml
kubectl apply -f mongo-stateful-set.yaml -n z2
kubectl apply -f mongo-express-deployment.yaml
kubectl apply -f mongo-express-service.yaml