-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Kubernetes deployed containers are not able to reach internet #1340
Comments
What version of minikube ( If Kubernetes is able to fetch the container image and start the container, there's a good chance connectivity is working as expected in the minikube VM. Try to run a generic container and see if it has network connectivity: If that works, it means Kubernetes is working correctly (fetching image, running container) and that the container itself can access the Internet and also that DNS is working. You can also test the network from inside the minikube VM: This is what I see when I try to use the Jenkins image with minikube 0.17.1 and Kubernetes 1.6.0:
And from the minikube VM:
|
Thanks for the reply. I'm not using minikube. I'm usign Kubernetes 1.6 cluster. On executing , kubectl run busybox --image=busybox --rm -ti --restart=Never --command -- ping -c 5 google-public-dns-a.google.com I get bad address google.com |
This is a repository for minikube issues. You might want to reach out in the kubernetes slack channel under #kubernetes-users for help debugging your cluster. |
Sure. Thank you!
…On Tue, Apr 11, 2017 at 8:16 PM, Matt Rickard ***@***.***> wrote:
Closed #1340 <#1340>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1340 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKsQZHwWp5jC483ACuxcTemsCzw4su-qks5ru5JQgaJpZM4M2vci>
.
|
@sowmiya99 were you able to resolve this issue? I got exactly the same problem with k8s 1.7. |
What happened here? From what I can tell this is an issue within minkube (at least I'm experiencing it too). Some random person (not OP) came on out of nowhere and said they weren't using minikube so it got closed? I think this probably should be re-opened... |
Sorry for late response. Get cluster IP of Kube
This will help the container to gain internet access. Regards, |
Adding cube dns worked for me
more information https://blog.yaakov.online/kubernetes-getting-pods-to-talk-to-the-internet/ |
@6graNik didn't help for me. i'm using minikube |
Me too |
yup, I am using minikube and running into similar issue:
|
me too also facing same issue I also added dns info but still same issue. services showing gray instead green |
adding "nameserver 8.8.8.8" in /etc/resolve.conf, helped me reach internet. |
It's DNS, It's not DNS... it's fucking DNS. I'm just attempting to install a barebones Jenkins instance on minikube (1.17.1) running on MacOS Big Sur 11.2.1. The DNS resolver for minikube (coredns) seems to employ an endless loop of DNS requests that never end up leaving the pod. I've followed the instructions here --> https://www.jenkins.io/doc/book/installing/kubernetes/ I'm getting a healthy DNS log output that indicates a running MD5 checksum config and a healthy pod log output for my Jenkins app indicating it's fully up and running. However, when I attempt to access the instance via the minikube ip and the specified service port it just times out. Has ANYONE found a workaround for getting Jenkins installed on a single minikube node? Plsss share.
Thanks! |
If anybody gets here because networking isn't working for a container started outside of Kubernetes 2 things:
|
I solved this issue with my minikube by editing coredns configuration:
|
UPDATE: Turns out something with my minikube VM got corrupted or improperly configured. I ran minikube delete which destroys the VM and all minikube containers. After this, I re-deployed, and my deployment worked as expected with no DNS issues, even with Alpine / MUSL. Everything below was my original, unstable solution to the problem:
|
Spawned a Jenkins container thorugh Kubernetes. Jenkisn job had git checkout task configgured. But getting the following error since the container is not able to reach internet.
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress URL +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: fatal: unable to access URL: Could not resolve host: github.com
On logging into the container , couldn't ping github.com or ping google.com
Kindly help!
The text was updated successfully, but these errors were encountered: