Skip to content

Commit

Permalink
adding livenessProbe and readinessProbe in deployment.yaml for porch …
Browse files Browse the repository at this point in the history
…server
  • Loading branch information
mansoor17syed committed Jan 7, 2025
1 parent 102bc1b commit d318bd3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions deployments/porch/3-porch-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions deployments/porch/9-controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d318bd3

Please sign in to comment.