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
Calico + KIND pods unable to communicate externally #2962
Comments
@song-jiang or @neiljerram I think you've both been using KIND recently, do either of you have any suggestions or tricks for making this work. Or maybe this use case is too different from what you've been doing. |
Can the KIND nodes communicate externally? (E.g. If no: it's not a Calico problem then. If yes: please check that NatOutgoing is enabled in your IP pool. |
Oh hang on, I think it might just be /etc/resolv.conf. Our recent KIND work has this:
|
@neiljerram I ran As an update, I deployed Calico v3.0 with Kubernetes-API-Datastore and it is able to bring up the deployment and the
Any ideas as to why this is happening? |
I thought we had a doc for editing IP Pools but I'm not finding it. You should be able to change NATOutgoing by using calicoctl to get your IP Pool, updated it and then apply your changes. When you query the logs for a pod you might want to try |
@tmjd I did this deployment using
with deployment.yaml as:
I do have |
Yes, please see https://docs.projectcalico.org/v3.10/getting-started/calicoctl/configure/kdd. If you are using KDD, you probably just need
and then calicoctl should connect. |
@sager-tech Also, stepping back to your reported problem... Please try to distinguish between problems with name resolution (aka DNS) and IP reachability. If If you can Hope that gives you a few ideas to look at... |
@neiljerram I setup This is the pared down deployment:
From my own pod,
and the I have checked the This is where I am currently stuck. I will look into your idea about |
@sager-tech I'm afraid your comments are still mixing up name resolution and IP reachability. Can you |
@neiljerram You were correct about the name resolution and IP reachability mixup. I am able to successfully
So you are correct about
but it is enabled in the I'm going through more |
Does your local network also have addresses that match 192.168.0.0/16 ? (For home networks, this is pretty common.) If so, I wonder if there is a confusion somewhere between routing to devices on your home network, and routing to pods? |
Oh, I think the problem is that KIND's default for the pod CIDR is 10.244.0.0/16, and Calico's default is 192.168.0.0/16, and they don't match. Can you try again with something like this to modify the CIDR in the Calico YAML:
|
@neiljerram I was able to have the pods come up and ping successfully, thank you. I'm a bit confused though -- in the
so it should have matched the |
Well, some of your output above definitely shows 10.244 pod addresses. So perhaps KIND missed processing that config for some reason, or another field needs setting, or something; but I'm afraid I don't know KIND that well yet. Anyway, great that things seem to be working for you now. |
Thanks a lot for your help! It's working now. @neiljerram |
Expected Behavior
Deploy KIND
Deploy Calico
See pods come up successfully and have coreDNS pods be able to
dig
,ping
successfullyCurrent Behavior
Any new pods deployed are not able to shift into
ready
state successfully and thecoreDNS
pods are not able to communicate externally viaping
, ordig
.Steps to Reproduce (for bugs)
Logs
Your Environment
{Major:"1", Minor:"14", GitVersion:"v1.14.3"}
darwin
The text was updated successfully, but these errors were encountered: