-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
pod cant access nodeport #75572
Comments
/sig Network |
kubernetes 0.10? can you check kube-proxy is running |
sorry, version is v1.10 |
/triage unresolved 🤖 I am a bot run by @vllry. 👩🔬 |
What happens when you run:
Also, where are the nodes hosted (VMware, AWS, Bare Metal, etc)? One other thing to note: |
thanks for your reply, kubectl get no: my nodes hosted VMware; about the default pod cidr of 10.244.0.0/16, I have not config this, how should i config? thank you. |
https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml I put the link to the yaml above. If your VMs just have one interface, it may be enough to edit or delete/re-deploy the ConfigMap flannel comes with (just look for "10.244.0.0" in the above link). If your cluster is new, however, I'd be safe and just re-deploy the whole thing from scratch if it will be used in production. CNI is pretty critical in Kubernetes and you don't want leftover weirdness anywhere from an old misconfigured one. |
I'm very sorry that i have not follow you, and i am not sure how to execute, I deploy flannel by rpm, not an |
/remove-triage unresolved |
I see, honestly I haven't installed flannel by .rpm before only as a bunch of kubernetes resources via the yaml file. How did you set Kubernetes up (e.g. via kubeadm, completely by hand, using kops, etc)? Also, how did you set your pod cidr network when you installed? Did you do it with etcdctl directly (e.g. something like |
thanks for reply, I installed flannel just by copying binary file, and then run some scripts; And I set kubernetes up completely by hand. I use etcdctl mk command to set the subnet, and i checked it: |
Is there a route to Node 2 from the other nodes? Does Node 2 have the appropriate routes to it's pods. Also, is Node 2 listening on the appropriate port? For the first question, you can run One other idea comes to my mind: Did you set all the kernel params on all three nodes? (e.g. with a tool like |
yes, i have checked that: And i have checked the iptables, and did not find some wrong thanks a lot |
This is a pretty tough issue then! Can you at least ping the node from the pod? Can you ping it by both IP and DNS name? |
ping is ok, in pod, ping host or other pod, all is ok. |
This is not a kubernetes issue. More like a flannel issue? |
all right,thanks a lot for your assistance! |
my cluster have three nodes,node1、node2、node3, i start a deployment and service, the
pod run on node2,in pod i can curl node1:port and node3:port,but cant curl node2:port。
i use flannel v0.10.0
kubernetes 0.10
Docker version 18.03.0-ce
thanks a lot!
The text was updated successfully, but these errors were encountered: