Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[apm-server] allow customizing probes (#671)
Browse files Browse the repository at this point in the history
This commit makes probes customizable using values.
The values where already partly existing but weren't used
in the deployment template.
  • Loading branch information
jmlrt authored Jun 18, 2020
1 parent 00f10e3 commit f57cdc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 3 additions & 9 deletions apm-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,9 @@ spec:
{{ toYaml .Values.podSecurityContext | indent 10 }}
{{- end }}
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
{{ toYaml .Values.livenessProbe | indent 10 }}
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
{{ toYaml .Values.readinessProbe | indent 10 }}
ports:
- containerPort: {{ .Values.service.port }}
name: http
Expand Down Expand Up @@ -125,4 +119,4 @@ spec:
{{- end }}
{{- if .Values.extraContainers }}
{{ tpl .Values.extraContainers . | indent 6 }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions apm-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,20 @@ podSecurityContext:
privileged: false

livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5

readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
Expand Down

0 comments on commit f57cdc7

Please sign in to comment.