forked from tkaburagi/consul-multicluster-servicemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·23 lines (19 loc) · 854 Bytes
/
deploy.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
gcloud container clusters get-credentials lab-cluster --zone us-central1-c --project se-kabu
if [ $1 = 1 ]; then
kubectl delete -f corp.yaml -n=multicluster-servicemesh
kubectl delete -f hashicorpx.yaml -n=multicluster-servicemesh
kubectl get all -n=multicluster-servicemesh
elif [ $1 = 0 ]; then
kubectl apply -f corp.yaml -n=multicluster-servicemesh
kubectl apply -f hashicorpx.yaml -n=multicluster-servicemesh
kubectl get all -n=multicluster-servicemesh
fi
aws eks --region ap-northeast-1 update-kubeconfig --name consul-mesh-gateway-cluster-2
if [ $1 = 1 ]; then
kubectl delete -f japan.yaml -n=multicluster-servicemesh
kubectl delete -f france.yaml -n=multicluster-servicemesh
elif [ $1 = 0 ]; then
kubectl apply -f japan.yaml -n=multicluster-servicemesh
kubectl apply -f france.yaml -n=multicluster-servicemesh
fi