mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 03:22:18 +00:00
e52a60e64e
Signed-off-by: Juri Malinovski <juri.malinovski@coolbet.com> Co-authored-by: houseme <housemecn@gmail.com>
23 lines
653 B
YAML
23 lines
653 B
YAML
{{- if and .Values.pdb.create .Values.mode.distributed.enabled }}
|
|
---
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "rustfs.fullname" . }}
|
|
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 }}
|