-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpart3-deploy-v1-all-envs.sh
41 lines (34 loc) · 1.43 KB
/
part3-deploy-v1-all-envs.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
# part 3: deploy v1 to all environments
# election v1 deployment with manual sidecar injection
istioctl kube-inject –kubeconfig "~/.kube/config" \
-f ./deployments/election-deployment-v1-dev.yaml \
--includeIPRanges=$IP_RANGES > \
election-deployment-istio.yaml \
&& kubectl apply -f election-deployment-istio.yaml \
&& rm election-deployment-istio.yaml
istioctl kube-inject –kubeconfig "~/.kube/config" \
-f ./deployments/election-deployment-v1-test.yaml \
--includeIPRanges=$IP_RANGES > \
election-deployment-istio.yaml \
&& kubectl apply -f election-deployment-istio.yaml \
&& rm election-deployment-istio.yaml
istioctl kube-inject –kubeconfig "~/.kube/config" \
-f ./deployments/election-deployment-v1-uat.yaml \
--includeIPRanges=$IP_RANGES > \
election-deployment-istio.yaml \
&& kubectl apply -f election-deployment-istio.yaml \
&& rm election-deployment-istio.yaml
# services
kubectl apply -f ./services/election-service.yaml -n dev
kubectl apply -f ./services/election-service.yaml -n test
kubectl apply -f ./services/election-service.yaml -n uat
# kubectl describe services -n dev
# route rules
kubectl apply -f ./routerules/routerule-election-v1.yaml -n dev
kubectl apply -f ./routerules/routerule-election-v1.yaml -n test
kubectl apply -f ./routerules/routerule-election-v1.yaml -n uat
# kubectl describe routerule -n dev
kubectl get pods -n dev
kubectl get pods -n test
kubectl get pods -n uat