Skip to content

Commit 13b2808

Browse files
committed
refactor(istio): istio services reafactor
1 parent 3561d43 commit 13b2808

25 files changed

+39
-36
lines changed

istio_examples/RouteRule/deploy.sh

100755100644
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
#!/bin/bash
2-
31
DIR=$(pwd)
42

5-
SERVICE_NAMES=("ui" "api")
6-
7-
for SERVICE_NAME in "${SERVICE_NAMES[@]}"; do
8-
cd $DIR/$SERVICE_NAME/src
9-
docker rmi gcr.io/training-193616/$SERVICE_NAME:v1
10-
npm i && npm run dockerize
11-
kubectl delete service,deployment -l app=$SERVICE_NAME
12-
docker tag k8s/$SERVICE_NAME:v1 gcr.io/training-193616/$SERVICE_NAME:v1
13-
gcloud docker -- push gcr.io/training-193616/$SERVICE_NAME:v1
14-
kubectl apply -f <(istioctl kube-inject -f ../deployment.yml)
15-
kubectl apply -f <(istioctl kube-inject -f ../service.yml)
16-
done
17-
18-
kubectl delete ingress gateway
19-
kubectl apply -f <(istioctl kube-inject -f $DIR/ingress.yml)
20-
213
kubectl delete routerule -l app=api
224
kubectl apply -f <(istioctl kube-inject -f $DIR/api/routerule.yml)
235
kubectl apply -f <(istioctl kube-inject -f $DIR/api/routerule2.yml)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)