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
Vault deployment with consul sidecar injection doesn't work due to service count #574
Comments
Hi all, faced the same issue. The versions: p.s. I didn't override the image versions in charts |
I have exactly the same issue but with redis chart. Redis chart also installs "regular" and headless service which results in multiple (two) services pointing at the same pod. Looks like consul doesn't like that and expects only 1 service to be pointing at a pod but I can't find any help in docs on how to handle such cases. btw, do you also get bunch of edit: I just noticed that is Vault, not Consul repo. I will repost this question in Consul repo |
Hi All, this is due to hashicorp/consul-k8s#592. Please follow that issue for updates. Question for y'all just for my knowledge on use-cases: why are you injecting the sidecar into Vault? |
For me personally (not limited to Vault) because I don't know what I want or don't want registered in the Consul mesh so I register everything. Actually this question could be extended to whether Consul is useful in single k8s cluster at all (with no multi cluster, multi datacenter or k8s <> non-k8s apps setup). Initially I wanted to use Consul as a distributed KV backend and then I thought: while you're here already, why can't you act as my service mesh even if you duplicate what k8s does already on its own 🤓 |
@mike-code I'll answer your question in hashicorp/consul-k8s#849 so as to not pollute this ticket. |
I've installed consul on a kubernetes cluster with helm and got the service mesh working.
Now I'm installing Vault with this helm chart.
These are the configuration parameters
Pod doesn't start up and stops on Init and this is in the logs:
After 10 failures:
Looking at consul-k8s source code at https://github.com/hashicorp/consul-k8s/blob/7d7ce5dc3f9ec74bf21f06b172fe3d97bddef62b/subcommand/connect-init/command.go
I can see:
Going by the count of services it actually finds (4) vs the expected value of 2, there's an indication that things are double.
I therefor rendered out the helm templates and deployed each component individually one by one to identify the problem. It seems that this happens because the helm chart deploys two services to front Vault.. and I can't really understand why that's done at all. What's the point of the headless service?
These are functionally identical?
I see no clear way to configure the helm chart to only render the server-service and not the server-headless-service.
Why is this headless service, how can we ignore it?
The text was updated successfully, but these errors were encountered: