-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
41 lines (32 loc) · 1 KB
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
echo "Define Google Cloud region (US West alternate) ..."
gcloud config set compute/zone us-west1-b
echo " "
echo "Setting up 'auth' ..."
kubectl create -f deployments/auth.yaml
kubectl create -f services/auth.yaml
echo " "
echo "Setting up 'hello' ..."
kubectl create -f deployments/hello.yaml
kubectl create -f services/hello.yaml
echo " "
echo "Setting up frontend configuration ..."
kubectl create configmap nginx-frontend-conf --from-file nginx/frontend.conf
kubectl create configmap nginx-proxy-conf --from-file=nginx/proxy.conf
kubectl get configmap
echo " "
echo "Setting up frontend certificates (expired) ..."
kubectl create secret generic tls-certs --from-file=tls/
kubectl get secrets
echo " "
echo "Setting up frontend ..."
kubectl create -f deployments/frontend.yaml
kubectl create -f services/frontend.yaml
echo " "
echo "Getting services ..."
kubectl get services
echo " "
echo "Getting pods ..."
kubectl get pods
echo " "
echo "Use 'curl -k https://{external hostname}' to verify ..."