From 1562cba420e39c8e14902fde8ab8324d72e63ebc Mon Sep 17 00:00:00 2001 From: Ta-Ching Chen Date: Sun, 2 Jun 2019 13:41:24 +0800 Subject: [PATCH] Add readiness/liveness probes to nat-streaming (#1199) --- charts/fission-all/templates/deployment.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/charts/fission-all/templates/deployment.yaml b/charts/fission-all/templates/deployment.yaml index 99f14d61..e044bb06 100644 --- a/charts/fission-all/templates/deployment.yaml +++ b/charts/fission-all/templates/deployment.yaml @@ -569,12 +569,29 @@ spec: args: [ "--cluster_id", "{{ .Values.nats.clusterID }}", "--auth", "{{ .Values.nats.authToken }}", - "--max_channels", "0" + "--max_channels", "0", + "--http_port", "4223" ] ports: - containerPort: 4222 hostPort: 4222 protocol: TCP + - containerPort: 4223 + hostPort: 4223 + protocol: TCP + readinessProbe: + httpGet: + path: "/streaming/serverz" + port: 4223 + initialDelaySeconds: 30 + periodSeconds: 1 + failureThreshold: 30 + livenessProbe: + httpGet: + path: "/streaming/serverz" + port: 4223 + initialDelaySeconds: 30 + periodSeconds: 5 {{- if .Values.extraCoreComponmentPodConfig }} {{ toYaml .Values.extraCoreComponmentPodConfig | indent 6 -}} {{- end }}