pdb-web.yaml 648 B

123456789101112131415161718192021
  1. {{- if .Values.mastodon.web.pdb.enable }}
  2. apiVersion: policy/v1
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ include "mastodon.fullname" . }}-web
  6. labels:
  7. {{- include "mastodon.labels" . | nindent 4 }}
  8. spec:
  9. {{- if .Values.mastodon.web.pdb.minAvailable }}
  10. minAvailable: {{ .Values.mastodon.web.pdb.minAvailable }}
  11. {{- end }}
  12. {{- if .Values.mastodon.web.pdb.maxUnavailable }}
  13. maxUnavailable: {{ .Values.mastodon.web.pdb.maxUnavailable }}
  14. {{- end }}
  15. selector:
  16. matchLabels:
  17. {{- include "mastodon.selectorLabels" . | nindent 6 }}
  18. app.kubernetes.io/component: web
  19. app.kubernetes.io/part-of: rails
  20. {{- end }}