From 413d0c86ea0b281476704929af0093155de72599 Mon Sep 17 00:00:00 2001 From: TwoDCube <2dcube01@gmail.com> Date: Thu, 5 Oct 2023 03:58:20 +0200 Subject: [PATCH] Remove unnecessary CA data, scale deployment to HA --- .github/workflows/cd.yaml | 1 - kubernetes/website_frontend2.yaml | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 155e524..7e45565 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -25,7 +25,6 @@ jobs: with: openshift_server_url: ${{ secrets.OKD4_HOST }} openshift_token: ${{ secrets.OKD4_TOKEN }} - certificate_authority_data: ${{ secrets.OKD4_CA }} namespace: 'verseghy-website-beta' - name: Buildah Build diff --git a/kubernetes/website_frontend2.yaml b/kubernetes/website_frontend2.yaml index 2a7ff62..4bf1573 100644 --- a/kubernetes/website_frontend2.yaml +++ b/kubernetes/website_frontend2.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: website-frontend2 spec: - replicas: 1 + replicas: 3 selector: matchLabels: app: website-frontend2 @@ -38,6 +38,13 @@ spec: resources: limits: memory: 128Mi + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app: website-frontend2 --- apiVersion: v1 kind: Service