pdb-streaming.yaml 651 B

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