-
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
firewalld: dashboard CrashLoopBackoff: dial tcp 10.96.0.1:443: connect: no route to host #3564
Comments
I'm not super familiar with Kubernetes and firewalls, but here is what I understand so far:
I suspect that kubeadm/k8s doesn't configure firewalld in this environment. Is your request then to add some firewalld integration support to minikube? |
Hi @tstromberg, thank you for the feedback! With the "default" iptables state on Ubuntu 16.04 (with just Docker running, no additional rules aside from those that Docker adds by default), these are the rules that are added regarding the dashboard (when enabled):
With firewalld running, there's only the rule pasted in the original comment. I think something (kubeadm/k8s/docker) falls over with firewalld running, and fails to add all the iptables rules that are needed. I'm not adding any iptables rules manually, that's just what gets created automatically in the process of creating/starting pods. Please let me know if there's any additional information you need. :) |
I'm having the same issue on CentOS 7.5 |
I'm facing the same issue as well on CentOS Linux release 7.5.1804 (Core) |
I have the same issue too on centos 7.6. When stop firewalld, minikube can work and the issue resolved. Can anybody tell me how to setting the firewalld so I don't need to stop firewalld? |
I'm closing this issue as it hasn't seen activity in awhile, and it's unclear if this issue still exists. If this issue does continue to exist in the most recent release of minikube, please feel free to re-open it. Thank you for opening the issue! FYI - for others discussing firewall rules: https://github.com/kubernetes/minikube/blob/master/docs/networking.md#firewalls-vpns-and-proxies now has some documentation for how to configure them. This issue appears to be due to automatic firewall rules being added by Kubernetes, however. |
mark |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Environment:
What happened:
When running
minikube addons enable dashboard
, the dashboard pod ends inCrashLoopBackOff
state.What you expected to happen:
The
kubernetes-dashboard
pod should be inRunning state
, with proper iptables rules added.How to reproduce it (as minimally and precisely as possible):
Install the
firewalld
daemon package on Ubuntu 16.04, ensure it's running (systemctl start firewalld
), attempt to initialize a minikube environment by runningminikube start --vm-driver none
. Enable the dashboard withminikube addons enable dashboard
. Observe thekubernetes-dashboard-*
pod crashing.Anything else do we need to know:
The logs for the dashboard container show:
The iptables rules contain:
The text was updated successfully, but these errors were encountered: