Skip to content

Commit

Permalink
chore: add static liveness and readiness probes
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Nov 21, 2024
1 parent cf577bf commit 008cc64
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 37 deletions.
8 changes: 6 additions & 2 deletions ocp/helm-charts/number-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ spec:
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
httpGet:
path: /healthz
port: http
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
httpGet:
path: /healthz
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
Expand Down
10 changes: 0 additions & 10 deletions ocp/helm-charts/number-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ resources: {}
# cpu: 100m
# memory: 128Mi

# 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: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
autoscaling:
enabled: false
Expand Down
8 changes: 6 additions & 2 deletions ocp/helm-charts/status-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ spec:
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
httpGet:
path: /healthz
port: http
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
httpGet:
path: /healthz
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
Expand Down
10 changes: 0 additions & 10 deletions ocp/helm-charts/status-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,6 @@ resources: {}
# cpu: 100m
# memory: 128Mi

# 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: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
autoscaling:
enabled: false
Expand Down
10 changes: 7 additions & 3 deletions ocp/helm-charts/view-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ spec:
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
httpGet:
path: /healthz
port: http
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
Expand Down
10 changes: 0 additions & 10 deletions ocp/helm-charts/view-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ resources: {}
# cpu: 100m
# memory: 128Mi

# 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: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http

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

0 comments on commit 008cc64

Please sign in to comment.