-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·23 lines (19 loc) · 1.07 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Contexts:
# gke_ompldr_us-east4-a_ompldr-us-east4
# gke_ompldr_us-west1-a_ompldr-us-west1
kubectl --context=gke_ompldr_us-east4-a_ompldr-us-east4 apply -f us-east4-macaroons.yaml
kubectl --context=gke_ompldr_us-east4-a_ompldr-us-east4 apply -f lnd-us-east4.yaml
kubectl --context=gke_ompldr_us-east4-a_ompldr-us-east4 apply -f bitcoind-us-east4.yaml
kubectl --context=gke_ompldr_us-west1-a_ompldr-us-west1 apply -f us-west1-macaroons.yaml
kubectl --context=gke_ompldr_us-west1-a_ompldr-us-west1 apply -f lnd-us-west1.yaml
kubectl --context=gke_ompldr_us-west1-a_ompldr-us-west1 apply -f bitcoind-us-west1.yaml
for ctx in $(kubectl config get-contexts --kubeconfig=./zpkubeconfig -o name); do
kubectl --context="${ctx}" apply -f redis-master.yaml
kubectl --context="${ctx}" apply -f ssl-certs.yaml
kubectl --context="${ctx}" apply -f secrets.yaml
kubectl --context="${ctx}" apply -f api-server.yaml
kubectl --context="${ctx}" apply -f periodic-service.yaml
kubectl --context="${ctx}" apply -f invoice-service.yaml
kubectl --context="${ctx}" apply -f web.yaml
done