-
Notifications
You must be signed in to change notification settings - Fork 55
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
kube-proxy fails to expose NodePort because of r/o filesystem #155
Comments
Thanks for the report @neuhalje! It looks like this is due to the latest version not being available in Fedora as @jasonbrooks can you push through an update? |
Related: https://pagure.io/releng/issue/7217 |
Update I upgraded the system & containers:
StatusInstalled Versions
Log
Nodes
ServicesThe service is running:
AnalysisLogCompared to the old output the first message is still logged but
Access service from the node worksOn the node the service can be accessed ( Access service from other systems does not workWhen I access the service from my laptop the service cannot be accessed (
Firewall
|
@ashcrow Is this a bug or a setup problem on my side? |
@jasonbrooks ^^ |
I'm looking into this |
@neuhalje It might be a setup problem on your side. I'm testing this on a three node cluster with system containers installed, and my nodeport is exposed on each of my nodes, and I'm able to curl the nginx server. I am getting the A wider issue is that we need to update / refine our suggested kubernetes setup process. I've always used https://github.com/kubernetes/contrib/tree/master/ansible, but those scripts have been deprecated for a different ansible-based approach that doesn't use these system containers at all. I think it might make sense to try and work out upstream kube master and node roles that work with https://github.com/openshift/openshift-ansible. |
@jasonbrooks Aligning installation and configuration with other projects is a good idea. I will close the issue because with the updated containers it very likely is a layer 8 problem on my side. Thank you for looking into this! |
I've hit this same issue. Able to connect to tutor-proxy nodePort locally, but not remotely. I'm running the latest available version of the kube-proxy system container from kube-proxy output:
|
Reopening. @jasonbrooks can you reproduce? |
It has been stated that this issue will be resolved with 2d50826 But I have doubt that the above fix applies to the kubernetes-proxy system container. It looks like it only applies to the kubelet container. |
@deuscapturus Right, I'm going to test adding a similar fix in the kube-proxy container |
@deuscapturus So, I tested the change, and it got rid of the error, but I'm able to access my nodeport from a separate system with or without the change. I can try to reproduce what you're seeing, do you have a test manifest or something I can try |
My problem is somewhere in iptables. I'm able to connect to my service externally on the nodePort when I change kube-proxy to @jasonbrooks as your test suggests the ro filesystem error/warning is an entirely different issue. Would you prefer a new issue or to change the title on this one? |
@deuscapturus we can keep this issue. I'm curious if you install the and run the proxy from the rpm, will you still have this issue. The following command will do it. I'm including a dl of the particular package because the current latest kube in f27 is 1.9.1, but a system container w/ that version hasn't been released yet.
|
The containerised kube-proxy fails to expose services with
NodePort
because it cannot lock/run/xtables.lock
(open /run/xtables.lock: read-only file system
)..
Version used
Service definition
Given the following yaml:
kubectl
Expected behaviour
curl http://172.20.61.51:32315
should return the nginx page.Observed behaviour
The port is not exposed.
Although I can connect to the ports of the container:
journaltctl -xe -u kube-proxy.service
returns the following errors:The text was updated successfully, but these errors were encountered: