tczekajlo / kube-consul-register

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

Register pods with hostPort #24

Closed dermyrddin closed 3 months ago

dermyrddin commented 6 years ago

Hi, thanks for this useful tool!

I plan to switch to Kubernetes from Docker in several stages and need to move my microservices to cluster one by one. So I need to register my pods in external (in relation to the cluster) Consul server with the same ports as were in Docker for transparent migration. The problem is that some containers have remapped ports (exposed and published). By default your tool registers them with containerPort and I can't figure, is it possible to register pod not with containerPort but with hostPort?