tczekajlo / kube-consul-register

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

Fix: in-cluster is default false #63

Closed till closed 2 years ago

till commented 2 years ago

Was wondering why it crashed:

I0803 14:33:00.734739       1 main.go:62] Using build: v0.1.9
F0803 14:33:00.734893       1 main.go:74] Error configuring the client: stat ./kubeconfig: no such file or directory
I0803 14:38:11.712914       1 main.go:62] Using build: v0.1.9
F0803 14:38:11.713063       1 main.go:74] Error configuring the client: stat ./kubeconfig: no such file or directory

... then figured out from reading the code here that it's the other way around: https://github.com/tczekajlo/kube-consul-register/blob/d710950a4ed16306787ad88516ab63ed3aa0ed8a/main.go#L38