Skip to content

Commit

Permalink
Install the Istio sidecar (#203)
Browse files Browse the repository at this point in the history
This is recommended by https://cloud.google.com/istio/docs/istio-on-gke/installing#installing_istio_on_gke_2

The annotations method comes from https://istio.io/docs/setup/additional-setup/sidecar-injection/#policy

Co-authored-by: Martin Petkov <mpetkov@google.com>
  • Loading branch information
MartinPetkov and MartinPetkov authored Apr 22, 2020
1 parent 690cc0f commit 79eeb1e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion WCP-WS/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
metadata:
labels:
app: study-meta-data
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: study-meta-data
Expand All @@ -37,7 +39,7 @@ spec:
- name: RESPONSE_SERVER
value: "response-server-np:50000"
- name: USER_REGISTRATION_SERVER
value: "user-registration-server-np:60000"
value: "user-registration-server-np:50000"
- name: STUDY_DESIGNER
value: "study-designer-np:50000"
- name: GOOGLE_APPLICATION_CREDENTIALS
Expand Down
4 changes: 3 additions & 1 deletion WCP/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
metadata:
labels:
app: study-designer
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: study-designer
Expand All @@ -34,7 +36,7 @@ spec:
name: study-designer-db-credentials
key: dbname
- name: REGISTRATION_SERVER_URL
value: "user-registration-server-np:60000"
value: "user-registration-server-np:50000"
- name: RESPONSE_SERVER_URL
value: "response-server-np:50000"
- name: GOOGLE_APPLICATION_CREDENTIALS
Expand Down
2 changes: 2 additions & 0 deletions auth-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
metadata:
labels:
app: auth-server
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: auth-server-ws
Expand Down
4 changes: 3 additions & 1 deletion response-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
metadata:
labels:
app: response-server
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: response-server-ws
Expand Down Expand Up @@ -60,7 +62,7 @@ spec:
- name: WCP_STUDY_METADATA_SERVER_URL
value: "study-meta-data-np:50000"
- name: REGISTRATION_SERVER_URL
value: "user-registration-server-np:60000"
value: "user-registration-server-np:50000"
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/secrets/gcloud_key/key.json"
ports:
Expand Down
2 changes: 2 additions & 0 deletions user-registration-server-ws/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
metadata:
labels:
app: user-registration-server
annotations:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: user-registration-ws
Expand Down

0 comments on commit 79eeb1e

Please sign in to comment.