Skip to content

Commit

Permalink
Making livenessProbe and readinessProbe variables to be able to healt…
Browse files Browse the repository at this point in the history
…h-check non-web services
  • Loading branch information
OleksandrUA committed May 2, 2023
1 parent 624e92a commit 0eb366f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.5
version: 0.0.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.5"
appVersion: "0.0.6"
icon: https://cncf-branding.netlify.app/img/projects/helm/horizontal/color/helm-horizontal-color.png
8 changes: 2 additions & 6 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,9 @@ spec:
{{- end }}
{{- end }}
livenessProbe:
tcpSocket:
# path: /
port: http
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
tcpSocket:
# path: /
port: http
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
9 changes: 9 additions & 0 deletions charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

livenessProbe:
tcpSocket:
# path: /
port: http
readinessProbe:
tcpSocket:
# path: /
port: http

serviceAccount: {}
# # Specifies whether a service account should be created
# create: false
Expand Down

0 comments on commit 0eb366f

Please sign in to comment.