Adding pod disruption budgets to horizon

This PS adds a pod disruption budget to the horizon pod to ensure
one replica of the pod is running.

Change-Id: If366517cff3c790655aba3337ffd5a7ac10e96a5
This commit is contained in:
Larry Rensing 2017-05-18 16:48:10 +00:00
parent b7f22c35a7
commit 19ec762cb9
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,9 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: horizon
spec:
minAvailable: {{ .Values.pod_disruption_budget.horizon.min_available }}
selector:
matchLabels:
app: horizon

View File

@ -31,6 +31,10 @@ upgrades:
max_unavailable: 1 max_unavailable: 1
max_surge: 3 max_surge: 3
pod_disruption_budget:
horizon:
min_available: 1
labels: labels:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
node_selector_value: enabled node_selector_value: enabled