Skip to content

Commit

Permalink
Allow configuring readiness probe through values (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor77 authored Nov 14, 2024
1 parent f818298 commit 590014a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/athens-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: athens-proxy
version: 0.14.3
version: 0.14.4
appVersion: v0.15.4
kubeVersion: ">= 1.19-0"
description: The proxy server for Go modules
Expand Down
4 changes: 4 additions & 0 deletions charts/athens-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ spec:
successThreshold: {{ .Values.livenessProbe.successThreshold }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
httpGet:
path: "/readyz"
port: 3000
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
env:
- name: ATHENS_GOGET_WORKERS
value: {{ .Values.goGetWorkers | quote }}
Expand Down
6 changes: 6 additions & 0 deletions charts/athens-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ livenessProbe:
successThreshold: 1
timeoutSeconds: 1

readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1

strategy:
# -- Using RollingUpdate requires a shared storage
type: Recreate
Expand Down

0 comments on commit 590014a

Please sign in to comment.