-
Notifications
You must be signed in to change notification settings - Fork 325
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
catalogSync: Allow auth to external K8s server using a kubeconfig file #1847
Comments
Hi @jose-ledesma this should work but you'd need to define externalServers. Where are your servers hosted and what version are they? Take a look at our docs here: https://developer.hashicorp.com/consul/docs/k8s/deployment-configurations/servers-outside-kubernetes |
Sorry, I probably was not clear enough. Consul Servers are deployed to Kubernetes, but not to the same K8s cluster. For clients we have the k8s plugin for joining, but for syncCatalog it seems there is not something similar. Out of curiosity, what’s the reason this feature needs to connect to Servers directly and can’t use the agents? |
Hey @jose-ledesma
You can continue using it but you will need to change it to a go-discover command. So in your
We've found that having client agents on Kubernetes complicates the deployment and networking requirements because |
Thanks a lot for your help! it was not clear to me how to proceed looking at the docs. For the client I'm already using the |
I believe we probably need to provide plumbing within Helm (via the synCatalog stanza) to allow you to pull in a kubeconfig for use with go-discover on the syncCatalog pod. I don't know if we'll be able to get to this but we're happy to review PRs. |
Community Note
Overview of the Issue
Enabling
syncCatalog
won't work if there are no Consul Servers deployed in the cluster. From thevalues.yaml
documentation from the Helm Chart:Nonetheless, the
sync-catalog-deployment
loads the env vars fromconsul.consulK8sConsulServerEnvVars
which setsCONSUL_ADDRESSES
pointing to the Kubernetes Service created when you deploy Consul ServersReproduction Steps
Deploy Consul Clients to a Kubernetes Cluster enabling
syncCatalog
without deploying Consul Servers in the very same clusterLogs
Expected behavior
syncCatalog is able to work on Kubernetes Clusters without the Consul Server deployd
Environment details
consul-k8s: 1.0.2
values.yaml:
Additional Context
The text was updated successfully, but these errors were encountered: