From d318bd38d7802939994c205b5ae7ceb4c3a922fc Mon Sep 17 00:00:00 2001 From: mansoora Date: Mon, 16 Dec 2024 20:15:11 +0530 Subject: [PATCH 1/2] adding livenessProbe and readinessProbe in deployment.yaml for porch server --- deployments/porch/3-porch-server.yaml | 20 ++++++++++++++++++++ deployments/porch/9-controllers.yaml | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/deployments/porch/3-porch-server.yaml b/deployments/porch/3-porch-server.yaml index b17053e6..b452d96c 100644 --- a/deployments/porch/3-porch-server.yaml +++ b/deployments/porch/3-porch-server.yaml @@ -79,6 +79,26 @@ spec: - --disable-validating-admissions-policy=true - --max-request-body-size=6291456 # Keep this in sync with function-runner's corresponding argument + #adding livenessProbes and readinessProbes for porch server + livenessProbe: + httpGet: + path: /healthz + port: 4443 + scheme: HTTPS + initialDelaySeconds: 30 + periodSeconds: 30 + failureThreshold: 3 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: /readyz + port: 4443 + scheme: HTTPS + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 3 + timeoutSeconds: 3 + --- apiVersion: v1 kind: Service diff --git a/deployments/porch/9-controllers.yaml b/deployments/porch/9-controllers.yaml index aea72781..90d96f5e 100644 --- a/deployments/porch/9-controllers.yaml +++ b/deployments/porch/9-controllers.yaml @@ -45,3 +45,24 @@ spec: env: - name: EXAMPLE_ENV value: "true" + livenessProbe: + failureThreshold: 3 + httpGet: + path: /healthz + port: 8081 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 30 + successThreshold: 1 + timeoutSeconds: 5 + name: porch-controllers + readinessProbe: + failureThreshold: 3 + httpGet: + path: /readyz + port: 8081 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 3 From 9db8f9baed520e72152679ab195b359cbbc08629 Mon Sep 17 00:00:00 2001 From: mansoora Date: Tue, 7 Jan 2025 21:18:06 +0530 Subject: [PATCH 2/2] adding performance validations code to porch --- deployments/porch/9-controllers.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/deployments/porch/9-controllers.yaml b/deployments/porch/9-controllers.yaml index 90d96f5e..a6a88c28 100644 --- a/deployments/porch/9-controllers.yaml +++ b/deployments/porch/9-controllers.yaml @@ -55,7 +55,6 @@ spec: periodSeconds: 30 successThreshold: 1 timeoutSeconds: 5 - name: porch-controllers readinessProbe: failureThreshold: 3 httpGet: