Skip to content

Commit

Permalink
livenessProbe & readinessProbe parameterized
Browse files Browse the repository at this point in the history
  • Loading branch information
Canpolat Oral committed Nov 15, 2024
1 parent 34f75a7 commit 5be3349
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/base/base-ms-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.1.5
version: 0.1.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.1.5"
appVersion: "0.1.6"
8 changes: 2 additions & 6 deletions charts/base/base-ms-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /
port: http
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
httpGet:
path: /
port: http
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
20 changes: 20 additions & 0 deletions charts/base/base-ms-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,23 @@ nodeSelector: {}
tolerations: []

affinity: {}

livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1

readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1

0 comments on commit 5be3349

Please sign in to comment.