Skip to content

Commit 61c4375

Browse files
committed
don't harcode ports
1 parent f8488ce commit 61c4375

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

charts/rm-workspace-api/templates/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,27 @@ spec:
3636
imagePullPolicy: {{ .Values.image.pullPolicy }}
3737
ports:
3838
- name: http
39-
containerPort: 8080
39+
containerPort: {{ .Values.service.port }}
4040
protocol: TCP
4141
readinessProbe:
4242
httpGet:
4343
path: /probe
44-
port: 8080
44+
port: {{ .Values.service.port }}
4545
initialDelaySeconds: 10
4646
timeoutSeconds: 2
4747
periodSeconds: 3
4848
failureThreshold: 1
4949
livenessProbe:
5050
httpGet:
5151
path: /probe
52-
port: 8080
52+
port: {{ .Values.service.port }}
5353
initialDelaySeconds: 20
5454
timeoutSeconds: 2
5555
periodSeconds: 8
5656
failureThreshold: 1
5757
env:
58+
- name: GUNICORN_BIND
59+
value: "0.0.0.0:{{ .Values.service.port }}"
5860
{{- if hasKey .Values "gunicornWorkers" }}
5961
- name: GUNICORN_WORKERS
6062
value: "{{ .Values.gunicornWorkers }}"

0 commit comments

Comments
 (0)