Adding pod disruption budget for glance
This PS adds a default pod disruption budget for glance-api and glance-registry to ensure at least one replica of each is running. Change-Id: I06364bc2bb816fd4877353857b1adfb13a35a0a7
This commit is contained in:
parent
9e3486380f
commit
3067a60468
9
glance/templates/pdb-api.yaml
Normal file
9
glance/templates/pdb-api.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: glance-api
|
||||
spec:
|
||||
minAvailable: {{ .Values.pod_disruption_budget.api.min_available }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: glance-api
|
9
glance/templates/pdb-registry.yaml
Normal file
9
glance/templates/pdb-registry.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: glance-registry
|
||||
spec:
|
||||
minAvailable: {{ .Values.pod_disruption_budget.registry.min_available }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: glance-registry
|
@ -45,6 +45,12 @@ upgrades:
|
||||
max_unavailable: 1
|
||||
max_surge: 3
|
||||
|
||||
pod_disruption_budget:
|
||||
api:
|
||||
min_available: 1
|
||||
registry:
|
||||
min_available: 1
|
||||
|
||||
bootstrap:
|
||||
enabled: true
|
||||
images:
|
||||
|
Loading…
Reference in New Issue
Block a user