Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions helm/robusta/templates/runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
image: {{ .Values.image.registry }}/{{ .Values.runner.imageName }}
{{- end }}
imagePullPolicy: {{ .Values.runner.imagePullPolicy }}
ports:
- name: http
containerPort: 5000
protocol: TCP
{{- with .Values.runner.securityContext.container }}
securityContext:
{{- if $.Values.runner.hardenedFs }}
Expand Down Expand Up @@ -168,6 +172,14 @@ spec:
{{- with .Values.runner.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if and .Values.runner.livenessProbe .Values.runner.livenessProbe.enabled }}
livenessProbe:
{{- toYaml (omit .Values.runner.livenessProbe "enabled") | nindent 10 }}
{{- end }}
{{- if and .Values.runner.readinessProbe .Values.runner.readinessProbe.enabled }}
readinessProbe:
{{- toYaml (omit .Values.runner.readinessProbe "enabled") | nindent 10 }}
{{- end }}
lifecycle:
preStop:
exec:
Expand Down
21 changes: 21 additions & 0 deletions helm/robusta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,27 @@ runner:
hardenedFs: false
setKRRSecurityContext: false

# Probes configuration
readinessProbe:
enabled: true
httpGet:
path: /healthz
port: 5000
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3

livenessProbe:
enabled: true
httpGet:
path: /healthz
port: 5000
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3

kube-prometheus-stack:
alertmanager:
tplConfig: true
Expand Down