Skip to content

Commit f441fcf

Browse files
committed
update to helm charts for grpc config
1 parent 784ad9d commit f441fcf

12 files changed

Lines changed: 32 additions & 86 deletions

File tree

k8s/helm/basket-api/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ spec:
7575
- name: http
7676
containerPort: 80
7777
protocol: TCP
78+
- name: grpc
79+
containerPort: 81
80+
protocol: TCP
7881
resources:
7982
{{ toYaml .Values.resources | indent 12 }}
8083
{{- with .Values.nodeSelector }}

k8s/helm/basket-api/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ spec:
1414
targetPort: http
1515
protocol: TCP
1616
name: http
17+
- port: {{ .Values.service.grpcPort }}
18+
targetPort: grpc
19+
protocol: TCP
20+
name: grpc
1721
selector:
1822
app: {{ template "basket-api.name" . }}
1923
release: {{ .Release.Name }}

k8s/helm/basket-api/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ image:
1010
service:
1111
type: ClusterIP
1212
port: 80
13+
grpcPort: 81
1314

1415
resources: {}
1516

@@ -41,6 +42,10 @@ env:
4142
values:
4243
- name: OrchestratorType
4344
value: 'K8S'
45+
- name: PORT
46+
value: "80"
47+
- name: GRPC_PORT
48+
value: "81"
4449
probes:
4550
liveness:
4651
path: /liveness
-9.13 KB
Binary file not shown.

k8s/helm/catalog-api/envoycfg/_envoy.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

k8s/helm/catalog-api/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ spec:
7373
{{- end }}
7474
ports:
7575
- name: http
76-
containerPort: 5000
76+
containerPort: 80
7777
protocol: TCP
7878
- name: grpc
79-
containerPort: 5001
79+
containerPort: 81
8080
protocol: TCP
8181
resources:
8282
{{ toYaml .Values.resources | indent 12 }}

k8s/helm/catalog-api/templates/envoy-cm.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

k8s/helm/catalog-api/templates/service.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ spec:
1818
targetPort: grpc
1919
protocol: TCP
2020
name: grpc
21-
- port: {{ .Values.service.envoy }}
22-
targetPort: envoy
23-
protocol: TCP
24-
name: envoy
2521
selector:
2622
app: {{ template "catalog-api.name" . }}
2723
release: {{ .Release.Name }}

k8s/helm/catalog-api/values.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ image:
99

1010
service:
1111
type: ClusterIP
12-
port: 5000
13-
grpc: 5001
14-
envoy: 80
15-
12+
port: 80
13+
grpcPort: 81
1614

1715
resources: {}
1816

@@ -47,19 +45,19 @@ env:
4745
- name: OrchestratorType
4846
value: 'K8S'
4947
- name: PORT
50-
value: "5000"
48+
value: "80"
5149
- name: GRPC_PORT
52-
value: "5001"
50+
value: "81"
5351
probes:
5452
liveness:
5553
path: /liveness
5654
initialDelaySeconds: 10
5755
periodSeconds: 15
58-
port: 5000
56+
port: 80
5957
readiness:
6058
path: /hc
6159
timeoutSeconds: 5
6260
initialDelaySeconds: 90
6361
periodSeconds: 60
64-
port: 5000
62+
port: 800
6563

k8s/helm/ordering-api/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ spec:
7575
- name: http
7676
containerPort: 80
7777
protocol: TCP
78+
- name: grpc
79+
containerPort: 81
80+
protocol: TCP
7881
resources:
7982
{{ toYaml .Values.resources | indent 12 }}
8083
{{- with .Values.nodeSelector }}

0 commit comments

Comments
 (0)