tczekajlo / kube-consul-register

a tool to register Kubernetes PODs as Consul Services
Apache License 2.0
105 stars 50 forks source link

register_mode=pod still calls node IPs #21

Closed killcity closed 6 years ago

killcity commented 6 years ago

For some reason, register_mode=pod still calls node ips (as opposed to pods).

E0420 18:18:22.317130       1 controller.go:290] Can't get services from Consul Agent, register mode=pod: Get http://10.242.0.7:8500/v1/agent/services: dial tcp 10.242.0.7:8500: getsockopt: connection refused

My kube-node subnet is 10.242.0.0/22. My pod subnet is: 172.23.0.0/16. Not sure why it's not trying the pod ip like was described in the docs?

killcity commented 6 years ago

This was due to a mistake on my side :)