mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-21 20:06:37 +00:00
8e1fcd4792
Co-authored-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> Co-authored-by: loverustfs <hello@rustfs.com>
24 lines
691 B
YAML
24 lines
691 B
YAML
{{- if and .Values.pdb.create .Values.mode.distributed.enabled }}
|
|
---
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "rustfs.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "rustfs.labels" . | nindent 4 }}
|
|
{{- with .Values.commonLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.pdb.minAvailable }}
|
|
minAvailable: {{ .Values.pdb.minAvailable }}
|
|
{{- end }}
|
|
{{- if and .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable) }}
|
|
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "rustfs.selectorLabels" . | nindent 6 }}
|
|
{{- end }}
|