Add readiness/liveness probes to nat-streaming (#1199)
This commit is contained in:
@@ -569,12 +569,29 @@ spec:
|
|||||||
args: [
|
args: [
|
||||||
"--cluster_id", "{{ .Values.nats.clusterID }}",
|
"--cluster_id", "{{ .Values.nats.clusterID }}",
|
||||||
"--auth", "{{ .Values.nats.authToken }}",
|
"--auth", "{{ .Values.nats.authToken }}",
|
||||||
"--max_channels", "0"
|
"--max_channels", "0",
|
||||||
|
"--http_port", "4223"
|
||||||
]
|
]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4222
|
- containerPort: 4222
|
||||||
hostPort: 4222
|
hostPort: 4222
|
||||||
protocol: TCP
|
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 }}
|
{{- if .Values.extraCoreComponmentPodConfig }}
|
||||||
{{ toYaml .Values.extraCoreComponmentPodConfig | indent 6 -}}
|
{{ toYaml .Values.extraCoreComponmentPodConfig | indent 6 -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user