-
Notifications
You must be signed in to change notification settings - Fork 332
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
cluster: storage node addesses discovery, added vmauth #1494
cluster: storage node addesses discovery, added vmauth #1494
Conversation
59f4822
to
ffbfc87
Compare
5c903f2
to
ae04a03
Compare
ae04a03
to
d5dc4e7
Compare
d5dc4e7
to
adfba40
Compare
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.
added optional vmauth in front of vmselect and vminsert. fixes #376
User can only benefit more from vmauth than k8s service when address under url_prefix
is pointing to a headless service, that way vmauth can resolve all the backend addresses in advance and proxy request to the least-loaded endpoint. But headless svc is not the default service type for both vmselect and vminsert here.
And I don't think we should add more logic to change the service type when enable the vmauth without making user understand why we do that. What about adding some instructions in readme?
|
||
# -- K8s cluster domain suffix, uses for building storage pods' FQDN. Details are [here](https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/) | ||
clusterDomainSuffix: cluster.local | ||
# -- Print information after deployment | ||
printNotes: true | ||
|
||
# use SRV discovery for storageNode and selectNode flags for enterprise version |
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.
Better to move it with other .values.license
fields for better understanding.
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.
license can also be defined at global.license
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.
added failure if no license is defined with autoDiscovery enabled
Co-authored-by: Hui Wang <[email protected]>
added for |
Need to set
btw, templates seem to complicate debugging and make value modifications more fragile(like the fix needed above, before the service name is not connected with the container name). helm-charts/charts/victoria-metrics-cluster/templates/_helpers.tpl Lines 261 to 288 in d478a24
|
having single template helps to find issues faster as it will fail in the same places for all apps and implement the same functionality for all apps at the same time |
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.
LGTM in general.
Added a few suggestions to fix a typo in configs. I would expect CI to detect this, but it seems like we don't have a test set to cover this templating path. Could you add some tests to cover this part?
template syntax fixes Co-authored-by: Zakhar Bessarab <[email protected]>
thanks for review. added this scenario |
<vmselect|vminsert>.extraArgs.storageNode
arrayrelated issue VictoriaMetrics/VictoriaMetrics#7040