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..a6a88c28 100644 --- a/deployments/porch/9-controllers.yaml +++ b/deployments/porch/9-controllers.yaml @@ -45,3 +45,23 @@ 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 + readinessProbe: + failureThreshold: 3 + httpGet: + path: /readyz + port: 8081 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 3