fix(probes) allows overriding the default liveness/readiness probe with custom commands - #1070
fix(probes) allows overriding the default liveness/readiness probe with custom commands#1070Manan-Kothari wants to merge 5 commits into
Conversation
…th custom commands
pmalek
left a comment
There was a problem hiding this comment.
Thanks for the PR. Do you mind adding a CI values.yaml that could test this? You can add this in here: https://github.com/Kong/charts/tree/main/charts/kong/ci
Updated tests, and also updated PR description with the example rendered manifest. |
pmalek
left a comment
There was a problem hiding this comment.
Please take a look at linter errors in charts/kong/ci/probe-test-values.yaml
| # memory: 2G | ||
|
|
||
| # readinessProbe for Kong pods | ||
| # replace httpGet with exec if you want to use a custom command |
There was a problem hiding this comment.
Can you please specify in the comments here an exemplary use case for exec? So that potential users know how exactly this can be used? I'm thinking something that could simply be uncommented to work ( assuming that httpGet section gets commented ). WDYT?
| initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} | ||
| timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} | ||
| periodSeconds: {{ .Values.livenessProbe.periodSeconds }} | ||
| successThreshold: {{ .Values.livenessProbe.successThreshold }} | ||
| failureThreshold: {{ .Values.livenessProbe.failureThreshold }} |
There was a problem hiding this comment.
How about making this into a small helm template which could be reused for both liveness and readiness probe?
What this PR does / why we need it:
This allows folks to override the liveness/readiness probe with a custom exec/command instead of defaulting to the httpGet. Keeps the existing behavior as default so no breaking changes.
Which issue this PR fixes
Special notes for your reviewer:
example values with execGet
helm template . --values values.yamlvalues.yaml
rendered out manifest
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
mainbranch.