From 93fb6d752bb1e8f2bd4014eb617100f437d0b754 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Wed, 1 May 2024 21:03:46 +0100 Subject: [PATCH] feat(probes): add support for config probes --- charts/mimir-singleton/Chart.yaml | 2 +- charts/mimir-singleton/templates/statefulset.yaml | 8 ++------ charts/mimir-singleton/values.yaml | 10 ++++++++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/charts/mimir-singleton/Chart.yaml b/charts/mimir-singleton/Chart.yaml index 33466ca..a132a8b 100644 --- a/charts/mimir-singleton/Chart.yaml +++ b/charts/mimir-singleton/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.1 +version: 0.2.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/mimir-singleton/templates/statefulset.yaml b/charts/mimir-singleton/templates/statefulset.yaml index 0e4c872..fb34320 100644 --- a/charts/mimir-singleton/templates/statefulset.yaml +++ b/charts/mimir-singleton/templates/statefulset.yaml @@ -54,13 +54,9 @@ spec: containerPort: {{ include "mimir-singleton.serverGrpcListenPort" . }} protocol: TCP livenessProbe: - httpGet: - path: /ready - port: http + {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: - httpGet: - path: /ready - port: http + {{- toYaml .Values.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.securityContext }} diff --git a/charts/mimir-singleton/values.yaml b/charts/mimir-singleton/values.yaml index 67044a8..868b069 100644 --- a/charts/mimir-singleton/values.yaml +++ b/charts/mimir-singleton/values.yaml @@ -100,6 +100,16 @@ resources: {} # cpu: 100m # memory: 128Mi +readinessProbe: + httpGet: + path: /ready + port: http + +livenessProbe: + httpGet: + path: /ready + port: http + autoscaling: enabled: false minReplicas: 1