-
Notifications
You must be signed in to change notification settings - Fork 2k
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
SysctlForbidden on Deployment when controller.hostNetwork = true #3714
Comments
Hi @davefinster thanks for reporting! Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂 Cheers! |
I am curious if the contributor of the change @sigv might have any comments. |
This is not great. I for some reason believed that it would be okay in Kubernetes, even though I was myself considering host-networking on Docker would not be viable, before opening that PR, when I was looking at
Looking back at Kubernetes documentation (ref) it is clear that the This should be patched, as host networking support should be restored.. but I am not yet 100% sure of the best compromise. |
Adding a simple The chart should be kept as simple as possible, so mixing the Capability with Sysctl feels like asking for trouble down the line. If the Sysctl is not viable, then it should be dropped, and replaced with IC process receiving The cap should be dropped by IC after starting Nginx, and by Nginx after binding the ports, but this is not a blocker. Currently not seeing any other approach to this, except a revert, which brings back the escalation concern. |
@sigv Where do you see that? I can only see that
Doesn't a cluster admin need to enable |
From the Setting Sysctls for a Pod section, worded a bit strangely: The parameters under Will open an upstream PR to have this documented more clearly. I was also looking at K8s docs saying The example
Based on the reported error saying it's not allowed with host net enabled, I think that K8s simply blocks this scenario - no workaround. Will try to get a patch with NET_BIND_SERVICE available for evaluation shortly. |
Describe the bug
With the advent of #3573 it appears that any deployment using hostNetwork=true on a deployment (not sure about daemonset) will now encounter an error with
To Reproduce
Steps to reproduce the behavior:
Expected behavior
nginx pods start up successfully
Your environment
Kube Version Info:
Pinning the HELM chart version to 0.16.2 resolves the problem
The text was updated successfully, but these errors were encountered: