Skip to content

Commit

Permalink
Updates probes with fix for failing test and add startupProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
byronmansfield committed Nov 20, 2024
1 parent e2b13b2 commit a1975a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/locust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/locust -f values.
| master.resources | object | `{}` | resources for the locust master |
| master.restartPolicy | string | `"Always"` | master pod's restartPolicy. Can be Always, OnFailure, or Never. |
| master.serviceAccountAnnotations | object | `{}` | |
| master.startupProbe | object | `{}` | |
| master.strategy.type | string | `"RollingUpdate"` | |
| master.tolerations | list | `[]` | Overwrites tolerations from global |
| nameOverride | string | `""` | |
Expand Down
8 changes: 8 additions & 0 deletions stable/locust/templates/master-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,18 @@ spec:
{{- if .Values.master.extraPorts -}}
{{ toYaml .Values.master.extraPorts | nindent 10 }}
{{- end }}
{{- if .Values.master.readinessProbe }}
readinessProbe:
{{- toYaml .Values.master.readinessProbe | nindent 12 }}
{{- end }}
{{- if .Values.master.livenessProbe }}
livenessProbe:
{{- toYaml .Values.master.livenessProbe | nindent 12 }}
{{- end }}
{{- if .Values.master.startupProbe }}
startupProbe:
{{- toYaml .Values.master.startupProbe | nindent 12 }}
{{- end }}
restartPolicy: {{ .Values.master.restartPolicy }}
volumes:
{{- if .Values.loadtest.locust_lib_configmap }}
Expand Down
12 changes: 12 additions & 0 deletions stable/locust/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ master:
# port: 8089
# scheme: HTTP

# Used to define startupProbe for the pod
startupProbe: {}
# initialDelaySeconds: 60
# periodSeconds: 30
# timeoutSeconds: 30
# failureThreshold: 2
# successThreshold: 1
# httpGet:
# path: /
# port: 8089
# scheme: HTTP

# master.restartPolicy -- master pod's restartPolicy. Can be Always, OnFailure, or Never.
restartPolicy: Always
# master.nodeSelector -- Overwrites nodeSelector from global
Expand Down

0 comments on commit a1975a4

Please sign in to comment.