diff --git a/charts/grafana/templates/poddisruptionbudget.yaml b/charts/grafana/templates/poddisruptionbudget.yaml index 05251214ac..c2264acf1e 100644 --- a/charts/grafana/templates/poddisruptionbudget.yaml +++ b/charts/grafana/templates/poddisruptionbudget.yaml @@ -19,4 +19,7 @@ spec: selector: matchLabels: {{- include "grafana.selectorLabels" . | nindent 6 }} + {{- with .Values.podDisruptionBudget.unhealthyPodEvictionPolicy }} + unhealthyPodEvictionPolicy: {{ . }} + {{- end }} {{- end }} diff --git a/charts/grafana/values.yaml b/charts/grafana/values.yaml index 5095c37441..0bf4b0e800 100644 --- a/charts/grafana/values.yaml +++ b/charts/grafana/values.yaml @@ -70,6 +70,7 @@ podDisruptionBudget: {} # apiVersion: "" # minAvailable: 1 # maxUnavailable: 1 +# unhealthyPodEvictionPolicy: IfHealthyBudget ## See `kubectl explain deployment.spec.strategy` for more ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy