Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding readinessProbe and livenessProbe probes to porch #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions nephio/core/porch/3-porch-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,28 @@ spec:
- --repo-sync-frequency=3m
- --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
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readyz
port: 4443
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 5
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 3
---
apiVersion: v1
kind: Service
Expand Down
20 changes: 20 additions & 0 deletions nephio/core/porch/9-controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,23 @@ spec:
value: "true"
- name: ENABLE_PACKAGEVARIANTSETS
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
22 changes: 22 additions & 0 deletions nephio/optional/porch-cert-manager-webhook/3-porch-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,28 @@ spec:
- --cache-directory=/cache
- --cert-dir=/tmp/certs
- --secure-port=4443

#adding livenessProbes and readinessProbes for porch server
livenessProbe:
httpGet:
path: /healthz
port: 4443
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 30
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readyz
port: 4443
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 5
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 3
---
apiVersion: v1
kind: Service
Expand Down
20 changes: 20 additions & 0 deletions nephio/optional/porch-cert-manager-webhook/9-controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,23 @@ spec:
value: "true"
- name: ENABLE_PACKAGEVARIANTS
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