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:
Larry Rensing 2017-05-18 16:20:22 +00:00
parent 9e3486380f
commit 3067a60468
3 changed files with 24 additions and 0 deletions

View 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

View 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

View File

@ -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: