i am trying to use consul, running in a pod to discover services running in kubernetes setup. I have followed the documentation but things are not working. Please share the working configuration yaml for the consul deployment.
Hi, are you using the helm-chart? What isn’t working?
Hey Luke,
i did used helm chart. But this is not registering the services i am creating.
I am trying to register all the services created on k8s setup to consul.
Can you please share a working compose or yaml file for consul-k8s project which will do the same.
Sounds like you want service-sync: https://www.consul.io/docs/platform/k8s/service-sync.html
You should be able to use this as your config.yaml:
# config.yaml
syncCatalog:
enabled: true
and install with
helm install ./consul-helm -f config.yaml