Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8s->Consul sync ports #80

Closed
jleechp-occm opened this issue Mar 14, 2019 · 1 comment
Closed

K8s->Consul sync ports #80

jleechp-occm opened this issue Mar 14, 2019 · 1 comment
Labels
area/sync Related to catalog sync type/question Question about product, ideally should be pointed to discuss.hashicorp.com

Comments

@jleechp-occm
Copy link

I'm running into an issue with Consul and AKS for service sync. Service configurations inside AKS are the same and I've tried modifying them to ensure this was not causing the issue.
They are set up as NodePort with ports 80 and 443 exposed (APIs)

A datacenter running 1.3.0 (and no ACLs) created 119 days ago (so prior to #63 being merged), NodePort services are showing up registered to the nodes with an IP address and port. AKS is configured using Azure as the network policy, which is intended to map pods to routable addresses (so each pod is on it's own IP rather than sharing IPs). Each Kubernetes node has enough IP addresses allocated to it to allow for all pods to have their own discrete IP.
image
Accessing it using curl only works over port 80 (and 443), rather than the port provided by consul (31698 in this case)
This allows for simple DNS resolution and navigation without having to perform more advanced queries or keep track of what ports are in use (which for API<->API communcation would not work)

A datacenter running 1.4.0+ent (with ACLs) lists the services as being part of the k8s-sync node. They provide the same details however they are only accessible over the specified node port rather than the agent port/IP that was being mapped originally. This prevents the simple DNS and API communication.

@lkysow
Copy link
Member

lkysow commented Sep 19, 2019

That looks like the NodePort. If you run kubectl get svc -o wide what do you see?

I know this ticket is super old and you've probably moved past this problem so I'm going to close it for now but if you still have this issue, please comment and I'll re-open.

@lkysow lkysow closed this as completed Sep 19, 2019
@lkysow lkysow added area/sync Related to catalog sync type/question Question about product, ideally should be pointed to discuss.hashicorp.com labels Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync Related to catalog sync type/question Question about product, ideally should be pointed to discuss.hashicorp.com
Projects
None yet
Development

No branches or pull requests

2 participants