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:
parent
b7f22c35a7
commit
19ec762cb9
9
horizon/templates/pdb.yaml
Normal file
9
horizon/templates/pdb.yaml
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user