From b60b4020a354877796d66d8184470d0f6c97696c Mon Sep 17 00:00:00 2001 From: Viswam Date: Wed, 9 Oct 2024 12:23:50 -0700 Subject: [PATCH] Changes for recreate POD in openshift --- .github/workflows/build-and-deploy.yml | 4 ++++ helm/templates/deployment.yaml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index c9c3c3b..2da3f33 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -106,3 +106,7 @@ jobs: - name: Deploy with Helm run: | helm upgrade --install kiln ./helm --set image.tag=${{ needs.build_and_push.outputs.image_tag }} + + - name: Trigger OpenShift Rollout + run: | + oc rollout restart deployment/kiln diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index a9764d3..4e95e28 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -20,4 +20,6 @@ spec: ports: - containerPort: 8080 resources: {{- toYaml .Values.resources | nindent 12 }} - restartPolicy: Always \ No newline at end of file + restartPolicy: Always + strategy: + type: Recreate \ No newline at end of file