-
Notifications
You must be signed in to change notification settings - Fork 345
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
allow custom readiness and liveness probes for vmselect and vminsert #757
Conversation
@@ -110,20 +110,28 @@ spec: | |||
containerPort: {{ include "split-host-port" .Values.vminsert.extraArgs.opentsdbListenAddr }} | |||
{{- end }} | |||
readinessProbe: | |||
{{- if not .Values.vminsert.probe.readiness.extra }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think If those are extra readiness/liveness, they shouldn't override the default one;
- Also need to add corresponding values in https://github.com/VictoriaMetrics/helm-charts/blob/master/charts/victoria-metrics-cluster/values.yaml#L72
I think we should modify the vminsert/vmselect probes like vmstorage does now, it will be more flexible to add extra probes or remove default one. helm-charts/charts/victoria-metrics-cluster/templates/vmstorage-statefulset.yaml Lines 79 to 82 in 9e7356a
And can you help updating the changelog with some description as well? |
Good idea, but how to move this default probe logic to values.yml?
|
Yeah, thanks for pointing out. Seems like there is no easy way to unify vminsert&vmstorage's probes without possibility to break some users' installation now. |
2e1d4b0
to
3a246a3
Compare
I renamed 'extra' to 'custom' to clarify that it overrides the default probe.
|
Is there any specific reason to override the default probe here? I thought you want to add an extra probe. And those new fields need to be added to values file too. |
I'm binding vmselect and vminsert to localhost for security reasons and using TLS sidecar to access these services on a diferent through a different port. Thus I need to change the definitions of probes to access that new port with HTTPS scheme. Also I want to replace tcpSocket probe with httpGet probe, since opening tcp to a sidecar proxy does not give much information, I need to actually call the service (vmselect/vminsert) behind the proxy. |
@jifwin |
closing in a favour of #1212 |
No description provided.