diff --git a/nephio/core/porch/3-porch-server.yaml b/nephio/core/porch/3-porch-server.yaml index 980c19e..082b4a0 100644 --- a/nephio/core/porch/3-porch-server.yaml +++ b/nephio/core/porch/3-porch-server.yaml @@ -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 diff --git a/nephio/core/porch/9-controllers.yaml b/nephio/core/porch/9-controllers.yaml index 7cc316b..78495d2 100644 --- a/nephio/core/porch/9-controllers.yaml +++ b/nephio/core/porch/9-controllers.yaml @@ -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 diff --git a/nephio/optional/porch-cert-manager-webhook/3-porch-server.yaml b/nephio/optional/porch-cert-manager-webhook/3-porch-server.yaml index e574cd2..def476d 100644 --- a/nephio/optional/porch-cert-manager-webhook/3-porch-server.yaml +++ b/nephio/optional/porch-cert-manager-webhook/3-porch-server.yaml @@ -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 diff --git a/nephio/optional/porch-cert-manager-webhook/9-controllers.yaml b/nephio/optional/porch-cert-manager-webhook/9-controllers.yaml index 59ad8a3..51fa910 100644 --- a/nephio/optional/porch-cert-manager-webhook/9-controllers.yaml +++ b/nephio/optional/porch-cert-manager-webhook/9-controllers.yaml @@ -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