Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): add liveness and readiness for deployment webserver #20567

Merged
merged 11 commits into from
Aug 8, 2022
18 changes: 18 additions & 0 deletions helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,24 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: {{ .Values.supersetNode.livenessProbe.initialDelaySeconds | default 15 }}
timeoutSeconds: {{ .Values.supersetNode.livenessProbe.timeoutSeconds | default 1 }}
failureThreshold: {{ .Values.supersetNode.livenessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.supersetNode.livenessProbe.periodSeconds | default 5 }}
successThreshold: {{ .Values.supersetNode.livenessProbe.successThreshold | default 1 }}
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: {{ .supersetNode.Values.readinessProbe.initialDelaySeconds | default 15 }}
timeoutSeconds: {{ .Values.supersetNode.readinessProbe.timeoutSeconds | default 1 }}
failureThreshold: {{ .Values.supersetNode.readinessProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.supersetNode.readinessProbe.periodSeconds | default 5 }}
successThreshold: {{ .Values.supersetNode.readinessProbe.successThreshold | default 1 }}
dpgaspar marked this conversation as resolved.
Show resolved Hide resolved
resources:
{{- if .Values.supersetNode.resources }}
{{ toYaml .Values.supersetNode.resources | indent 12 }}
Expand Down
15 changes: 15 additions & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,20 @@ supersetNode:
podAnnotations: {}
## Labels to be added to supersetNode pods
podLabels: {}
## these settings overwrite default existing values in template for livenessProbe
livenessProbe: {}
# initialDelaySeconds: 15
# timeoutSeconds: 1
# failureThreshold: 3
# periodSeconds: 15
# successThreshold: 1
## these settings overwrite default existing values in template for readinessProbe
readinessProbe: {}
# initialDelaySeconds: 15
# timeoutSeconds: 1
# failureThreshold: 3
# periodSeconds: 15
# successThreshold: 1
# Resource settings for the supersetNode pods - these settings overwrite might existing values from the global resources object defined above.
resources: {}
# limits:
Expand All @@ -263,6 +277,7 @@ supersetNode:
# requests:
# cpu: 100m
# memory: 128Mi

##
## Superset worker configuration
supersetWorker:
Expand Down