poddisruptionbudget.yaml 692 B

12345678910111213141516171819202122
  1. {{- if .Values.podDisruptionBudget }}
  2. apiVersion: policy/v1beta1
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ template "grafana.fullname" . }}
  6. namespace: {{ template "grafana.namespace" . }}
  7. labels:
  8. {{- include "grafana.labels" . | nindent 4 }}
  9. {{- if .Values.labels }}
  10. {{ toYaml .Values.labels | indent 4 }}
  11. {{- end }}
  12. spec:
  13. {{- if .Values.podDisruptionBudget.minAvailable }}
  14. minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
  15. {{- end }}
  16. {{- if .Values.podDisruptionBudget.maxUnavailable }}
  17. maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
  18. {{- end }}
  19. selector:
  20. matchLabels:
  21. {{- include "grafana.selectorLabels" . | nindent 6 }}
  22. {{- end }}