hashicorp / consul-k8s

First-class support for Consul Service Mesh on Kubernetes
https://www.consul.io/docs/k8s
Mozilla Public License 2.0
667 stars 316 forks source link

sync kubernetes pod ips as consul services in consul #126

Closed dineshba closed 4 years ago

dineshba commented 5 years ago

We have provision to sync kubernetes services as consul service. Can we extend this feature to sync pod ips also to consul as consul service ?

For our current use case, we are currently using kube-consul-register to register the POD IPs to consul. Can we extend this feature in consul-k8s?

If this is valid extension, I would love to work on this feature and raise a PR.

aswinkarthik commented 5 years ago

In GKE, Pod IPs are treated as first class IPs i.e. Routes to Pod IPs are automatically added whenever new node is created.

In a single GCP, we have multiple GKEs across which communications happen directly between two Pods. Here we use Consul as the common catalog across these GKEs.

Would love this feature to be present.

lkysow commented 5 years ago

ClusterIP services have each of their endpoints (i.e. pod IPs) synced. Is your Service a different type?

adilyse commented 4 years ago

Since syncing of ClusterIP services using their pod IPs is available and there's been no further clarifications to the request, I'm going to close this for now. Please feel free to respond or open a new ticket if there was something we haven't addressed!