tczekajlo / kube-consul-register

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

registered service do not show in consul #47

Open danielmotaleite opened 5 years ago

danielmotaleite commented 5 years ago

HI

i have a headless (daemonset) service named telegraf with the correct tabs and it looks like is being registered, but checking consul i do not see any service created

$  kubectl -n consul log  -f  kube-consul-register-7684f
I0813 00:40:37.622567       1 main.go:64] Using build: v0.1.6
I0813 00:40:37.636938       1 main.go:98] Current configuration: Controller: &config.ControllerConfig{ConsulAddress:"localhost", ConsulPort:"8500", ConsulScheme:"http", ConsulCAFile:"", ConsulCertFile:"", ConsulKeyFile:"", ConsulInsecureSkipVerify:false, ConsulToken:"TOKEN", ConsulTimeout:2000000000, ConsulContainerName:"consul", ConsulNodeSelector:"consul=enabled", PodLabelSelector:"", K8sTag:"k8s", RegisterMode:"node", RegisterSource:"endpoint"}, Consul: &api.Config{Address:"127.0.0.1:8500", Scheme:"http", Datacenter:"", HttpClient:(*http.Client)(0xc4203e06c0), HttpAuth:(*api.HttpBasicAuth)(nil), WaitTime:0, Token:""}
I0813 00:40:37.637004       1 main.go:128] Start syncing...
I0813 00:40:37.665763       1 controller.go:368] Service's been registered, Name: telegraf, ID: telegraf-2h2kr-9009
I0813 00:40:37.688484       1 controller.go:368] Service's been registered, Name: telegraf, ID: telegraf-pr96s-9009
I0813 00:40:37.709802       1 controller.go:368] Service's been registered, Name: telegraf, ID: telegraf-prmjc-9009
I0813 00:40:37.709821       1 main.go:133] Synchronization's been ended
I0813 00:40:37.709833       1 main.go:112] Start cleaning...
I0813 00:40:37.717472       1 main.go:117] Cleaning has been ended
I0813 00:42:37.709952       1 main.go:128] Start syncing...
I0813 00:42:37.724172       1 main.go:133] Synchronization's been ended
I0813 00:44:37.724291       1 main.go:128] Start syncing...
I0813 00:44:37.737537       1 main.go:133] Synchronization's been ended
I0813 00:46:37.737742       1 main.go:128] Start syncing...
I0813 00:46:37.751332       1 main.go:133] Synchronization's been ended

Maybe related to https://github.com/tczekajlo/kube-consul-register/issues/35 ?