diff --git a/barbican/templates/pdb-api.yaml b/barbican/templates/pdb-api.yaml new file mode 100644 index 0000000000..ce62b01733 --- /dev/null +++ b/barbican/templates/pdb-api.yaml @@ -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 \ No newline at end of file diff --git a/barbican/values.yaml b/barbican/values.yaml index b200354b3a..2b8625b003 100644 --- a/barbican/values.yaml +++ b/barbican/values.yaml @@ -33,6 +33,10 @@ upgrades: max_unavailable: 1 max_surge: 3 +pod_disruption_budget: + api: + min_available: 1 + network: api: name: "barbican-api"