Adding pod disruption budget for barbican
This PS adds a default pod disruption budget for barbican-api to ensure at least one replica is running. Change-Id: I505028d6c277edb3a1da2690545e630df5e2fb16
This commit is contained in:
parent
9e3486380f
commit
b8a97aa5ac
9
barbican/templates/pdb-api.yaml
Normal file
9
barbican/templates/pdb-api.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: barbican-api
|
||||
spec:
|
||||
minAvailable: {{ .Values.pod_disruption_budget.api.min_available }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: barbican-api
|
@ -33,6 +33,10 @@ upgrades:
|
||||
max_unavailable: 1
|
||||
max_surge: 3
|
||||
|
||||
pod_disruption_budget:
|
||||
api:
|
||||
min_available: 1
|
||||
|
||||
network:
|
||||
api:
|
||||
name: "barbican-api"
|
||||
|
Loading…
Reference in New Issue
Block a user