| {{- if and .Values.thanosRuler.enabled .Values.thanosRuler.podDisruptionBudget.enabled }} |
| apiVersion: {{ include "kube-prometheus-stack.pdb.apiVersion" . }} |
| kind: PodDisruptionBudget |
| name: {{ template "kube-prometheus-stack.fullname" . }}-thanos-ruler |
| namespace: {{ template "kube-prometheus-stack.namespace" . }} |
| app: {{ template "kube-prometheus-stack.name" . }}-thanos-ruler |
| {{ include "kube-prometheus-stack.labels" . | indent 4 }} |
| {{- if .Values.thanosRuler.podDisruptionBudget.minAvailable }} |
| minAvailable: {{ .Values.thanosRuler.podDisruptionBudget.minAvailable }} |
| {{- if .Values.thanosRuler.podDisruptionBudget.maxUnavailable }} |
| maxUnavailable: {{ .Values.thanosRuler.podDisruptionBudget.maxUnavailable }} |
| app.kubernetes.io/name: thanos-ruler |
| thanos-ruler: {{ template "kube-prometheus-stack.fullname" . }}-thanos-ruler |