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
[incubator/thumbor] add container probes #173
[incubator/thumbor] add container probes #173
Conversation
@hairmare looks good! {{- with .Values.probes }}
{{ toYaml . | indent 10 }}
{{- end }} and values.yaml part can be like this: probes
livenessProbe:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
readinessProbe:
httpGet:
path: /healthcheck
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1 |
@alebabai I was mostly looking at existing helm/charts charts for inspiration and found quite some that follow this explicit style of configuration. Sadly the helm best practices don't really go into any detail on this. I did livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http How about something like this: probes:
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
httpGet:
path: /healthcheck
port: http
{{- with .Values.livenessProbe.config }}
{{ toYaml . | indent 12 }}
{{- end }}
{{- end }} This way the default from K8s are used if no values are specified and the actual checks are still in the template in a fashion close to what is proposed by I feel like moving the complete probes to values.yaml kind of defeats the purpose of having a helm template in the first place. The individual I'm not sure about the |
The approach @alebabai suggests is pretty common in the official
I don't have a strong feeling either way. @goruha mention to me via Slack he prefers @alebabai way too. We are though leaning towards this approach and adopted it in our Our monochart represents our stab at creating a one-size-fits-all chart for deploying the most "common" types of apps.
Yea, don't like adding the extra level of |
0fe929a
to
061c8d1
Compare
thanks @hairmare ! |
Thanks for the feedback and merge! |
what
why
/healthcheck
endpoint in their docs and they recommend if for use behind a load balancer (and K8s Services are kinda loadbalancers).