Merge pull request #7246 from Rory-Z/build/update-helm-template

build(helm): add preStop command for container
This commit is contained in:
Zaiming (Stone) Shi 2022-06-01 05:47:13 +01:00 committed by GitHub
commit 077b752fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -141,8 +141,23 @@ spec:
httpGet: httpGet:
path: /api/v5/status path: /api/v5/status
port: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTP | default 18083 }} port: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTP | default 18083 }}
initialDelaySeconds: 5 initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
failureThreshold: 30
livenessProbe:
httpGet:
path: /api/v5/status
port: {{ .Values.emqxConfig.EMQX_DASHBOARD__LISTENER__HTTP | default 18083 }}
initialDelaySeconds: 60
periodSeconds: 30
failureThreshold: 10
lifecycle:
preStop:
exec:
command:
- "/opt/emqx/bin/emqx_ctl"
- "cluster"
- "leave"
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}