diff --git a/helm/robusta/templates/runner.yaml b/helm/robusta/templates/runner.yaml index 25fcdf2b9..e14b3adae 100644 --- a/helm/robusta/templates/runner.yaml +++ b/helm/robusta/templates/runner.yaml @@ -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 }} @@ -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: diff --git a/helm/robusta/values.yaml b/helm/robusta/values.yaml index 8c7f3230e..707f8037a 100644 --- a/helm/robusta/values.yaml +++ b/helm/robusta/values.yaml @@ -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