Skip to content

Commit

Permalink
Add readiness/liveness probes to nat-streaming (fission#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
life1347 authored Jun 2, 2019
1 parent 6bab9dc commit 1562cba
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion charts/fission-all/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 1562cba

Please sign in to comment.