-
Notifications
You must be signed in to change notification settings - Fork 781
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
Error: Get https://10.152.183.1:443/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 10.152.183.1:443: connect: no route to host #854
Comments
Looks like the pod cannot access the kubernetes api. This is usually a network configuration solved with:
Please go through the common issues section at https://microk8s.io/docs/troubleshooting#common-issues |
i tried adding that rule but it didn't work |
@ktsakalozos can you provide me other information to fix the issue? |
From inside a busybox https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/admin/dns/busybox.yaml you should be able to reach 10.152.183.1. If not there could be a firewall involved? What does |
microk8.inspect logsis in the top section of this issue i have included that while creating issue |
ufw is inactive and i have already add the iptables rule but the issue is not resolved. form busybox container the ip is not reachable. |
once again the microk8s.inspect tell the following: microk8s.inspect Inspecting services Building the report tarball |
Can you please share the produced tarball? |
inspection-report-20191210_094530.tar.gz |
Can you share your |
cat /etc/hosts The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopback route -n |
@shreeram-silwal I see this machine is a kvm. How did you create it? I would like to reproduce the setup you have to figure out why this happens. |
it's a oracle cloud vm not a kvm virtual machine. |
@ktsakalozos as you said it looks like kvm but it's not it's a oracle vm is there anything you found the issue by looking into the tarball file? |
I also tried on creating another ubuntu vm on oracle but the same issue occured. |
I spent some time on Oracle Cloud, here is what is probably biting us. If you do a
The forward chain starts with:
If you remove these two rules you should allow the traffic to flow to the API server.
I do not know much about firewalls but it seems to me these two rules that are there by default work against the default policies:
Here is some info in case you want to create your ingress/egress rules. The pods get IPs in |
thanks @ktsakalozos it's working now. |
@ktsakalozos I am facing same issue on my on-prem, any help is appreciated |
I ran into this issue recently because of firewalld (it adds those two icmp-host-prohibited rules automatically). Another way to fix it is to turn masquerading on for the default zone:
|
Also on oracle cloud, I ended up adding these to my
These mimic the ufw rules described in https://microk8s.io/docs/troubleshooting#heading--common-issues and are a bit more strict than I also commented out the
After making those two modifications to
|
In my case, I was using 10.1.0.0/16 as my VPC CIDR block and it was conflicting with the pod IPs that microk8s uses |
Please run
microk8s.inspect
and attach the generated tarball to this issue.Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
Service snap.microk8s.daemon-flanneld is running
Service snap.microk8s.daemon-containerd is running
Service snap.microk8s.daemon-apiserver is running
Service snap.microk8s.daemon-apiserver-kicker is running
Service snap.microk8s.daemon-proxy is running
Service snap.microk8s.daemon-kubelet is running
Service snap.microk8s.daemon-scheduler is running
Service snap.microk8s.daemon-controller-manager is running
Service snap.microk8s.daemon-etcd is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy current linux distribution to the final report tarball
Copy openSSL information to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
WARNING: Docker is installed.
Add the following lines to /etc/docker/daemon.json:
{
"insecure-registries" : ["localhost:32000"]
}
and then restart docker with: sudo systemctl restart docker
Building the report tarball
Report tarball is at /var/snap/microk8s/1079/inspection-report-20191210_050225.tar.gz
after initializing helm by creating serivce account tiller it successfully deploys tiller pod but helm is not able to communicate with tiller.
helm ls
Error: Get https://10.152.183.1:443/api/v1/namespaces/kube-system/configmaps?labelSelector=OWNER%!D(MISSING)TILLER: dial tcp 10.152.183.1:443: connect: no route to host
alias is added for helm and kubectl
alias helm = 'microk8s.helm'
alias kubectl = 'microk8s.kubectl'
kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-9b8997588-6lmzt 0/1 Running 0 18h
tiller-deploy-68cff9d9cb-hgl2f 1/1 Running 0 22h
tiller pod is running without any error
also when enableing dns with microk8s.enable dns the pod is not up as it shows running
logs of coredns:
The text was updated successfully, but these errors were encountered: