zkt22/sk1/prepare-app.sh

16 lines
565 B
Bash
Raw Normal View History

2022-05-14 11:53:26 +00:00
#!/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