16 lines
565 B
Bash
16 lines
565 B
Bash
|
#!/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
|