Skip to content

Commit

Permalink
Merge pull request #34 from jordanopensource/task/add_path_attribute_…
Browse files Browse the repository at this point in the history
…to_probes

[kutt] Add path attribute to probes
  • Loading branch information
thread-koder authored Jun 19, 2023
2 parents f8ffd83 + e40eb71 commit 38c7c2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kutt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.0
version: 0.2.0

# 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
Expand Down
4 changes: 2 additions & 2 deletions charts/kutt/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
httpGet:
path: /
path: {{ .Values.livenessProbe.path }}
port: http
readinessProbe:
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
Expand All @@ -96,7 +96,7 @@ spec:
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
httpGet:
path: /
path: {{ .Values.readinessProbe.path }}
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kutt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ tolerations: []
affinity: {}

livenessProbe:
path: /api/v2/health
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3

readinessProbe:
path: /api/v2/health
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
Expand Down

0 comments on commit 38c7c2a

Please sign in to comment.