Skip to content

Commit

Permalink
chore: add /healthz liveness and readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Nov 18, 2024
1 parent 4a271fb commit 6c8c559
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ spec:
requests:
cpu: 10m
memory: 32Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
securityContext:
runAsUser: 65535
runAsGroup: 65535
Expand Down
8 changes: 8 additions & 0 deletions ocp/deployments/manifests/basic/deployment_view_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ spec:
requests:
cpu: 10m
memory: 32Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
securityContext:
runAsUser: 65535
runAsGroup: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ spec:
requests:
cpu: 10m
memory: 32Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
securityContext:
runAsUser: 65535
runAsGroup: 65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ spec:
requests:
cpu: 10m
memory: 32Mi
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
securityContext:
runAsUser: 65535
runAsGroup: 65535
Expand Down
4 changes: 2 additions & 2 deletions ocp/helm-charts/number-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ resources: {}
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe:
httpGet:
path: /
path: /healthz
port: http
readinessProbe:
httpGet:
path: /
path: /healthz
port: http

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
Expand Down
4 changes: 2 additions & 2 deletions ocp/helm-charts/view-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ resources: {}
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe:
httpGet:
path: /
path: /healthz
port: http
readinessProbe:
httpGet:
path: /
path: /healthz
port: http

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
Expand Down

0 comments on commit 6c8c559

Please sign in to comment.