-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
service ip is unreachable from pod #10402
Comments
Update: I've tried to run the same setup using ipv4 addresses for services by changing the order of the address families in the cluster init command:
It seems to work with that. However, I'd still prefer to use ipv6 internally. |
I don't know that pings (ICMPv6) are supposed to work against service clusterIPs? Remember that service clusterIPs don't actually exist anywhere, by default they are just iptables port forwards to the pod endpoints, managed by kube-proxy. Some CNIs have kube-proxy replacements that work differently, and kube-proxy itself has ipvs mode which changes things a bit. Can you try hitting the service on its TCP port? |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Environmental Info:
K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
1 server
Describe the bug:
I've just initialized a dual stack cluster using the following command:
Afterwards, I've deployed a service and some pods:
Inside a pod, I can get the service's ip using the
POSTGRESQL_SERVICE_SERVICE_HOST
env variable:However, that IP of the service is unreachable:
Connecting using the IP od a pod behind the service works. Since the service cidr doesn't appear in the routing tables, I suspect it didn't get added?
Expected behavior:
The pod behind the service is reachable
Actual behavior:
the pod behind the service is unreachable
The text was updated successfully, but these errors were encountered: