-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate handler when overriding readiness/liveness probes #1065
Comments
YAML is kinda stupid and can't handle the mutually exclusive relationship Does setting |
Nope, just tested this out values.yaml livenessProbe:
httpGet: {}
exec:
command:
- python3.10
- /home/kong/scripts/liveness_probe.py
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3 renders out to livenessProbe:
exec:
command:
- python3.10
- /home/kong/scripts/liveness_probe.py
failureThreshold: 3
httpGet:
path: /status
port: status
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5 |
Opened up a PR for a fix, but this looks like it's an actual helm bug helm/helm#12991 |
When overriding liveness probe, I get my probe plus the default one defined. The extra handler triggers a K8S error.
Chart.yaml:
values.yaml:
Running
helm dep up
andhelm template .
renders the following in my Deployment:Note that my
exec
handler is followed by the default KonghttpGet
handler, which triggers an error in K8S.Same code behaves as expected with startup probes, only liveness and readiness probes have a problem.
The text was updated successfully, but these errors were encountered: