From 033354363d582f8091d2178dccdd15ab2b2576ab Mon Sep 17 00:00:00 2001 From: Michael Shen Date: Mon, 14 Oct 2024 09:09:50 -0400 Subject: [PATCH] Run ARO HCP frontend with 2 replicas With the completion of https://github.com/Azure/ARO-HCP/pull/680 this PR adds a PodDisruptionBudget to ensure 1 replica is running, but by default 2 replicas will be running at all times. Signed-off-by: Michael Shen --- .../helm/frontend/templates/frontend.deployment.yaml | 6 +++--- .../frontend/templates/frontend.poddisruptionbudget.yaml | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 frontend/deploy/helm/frontend/templates/frontend.poddisruptionbudget.yaml diff --git a/frontend/deploy/helm/frontend/templates/frontend.deployment.yaml b/frontend/deploy/helm/frontend/templates/frontend.deployment.yaml index 8bc2182f3..e9c63c458 100644 --- a/frontend/deploy/helm/frontend/templates/frontend.deployment.yaml +++ b/frontend/deploy/helm/frontend/templates/frontend.deployment.yaml @@ -6,15 +6,15 @@ metadata: name: aro-hcp-frontend spec: progressDeadlineSeconds: 600 - replicas: 1 + replicas: 2 revisionHistoryLimit: 10 selector: matchLabels: app: aro-hcp-frontend strategy: rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% + maxSurge: 50% + maxUnavailable: 50% type: RollingUpdate template: metadata: diff --git a/frontend/deploy/helm/frontend/templates/frontend.poddisruptionbudget.yaml b/frontend/deploy/helm/frontend/templates/frontend.poddisruptionbudget.yaml new file mode 100644 index 000000000..4d9f6145a --- /dev/null +++ b/frontend/deploy/helm/frontend/templates/frontend.poddisruptionbudget.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: aro-hcp-frontend +spec: + minAvailable: 1 + selector: + matchLabels: + app: aro-hcp-frontend