templates/pdb.yaml を追加
This commit is contained in:
18
templates/pdb.yaml
Normal file
18
templates/pdb.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||||||
|
apiVersion: policy/v1
|
||||||
|
kind: PodDisruptionBudget
|
||||||
|
metadata:
|
||||||
|
name: {{ include "phpmyadmin-nginx.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "phpmyadmin-nginx.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
||||||
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "phpmyadmin-nginx.selectorLabels" . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
Reference in New Issue
Block a user