-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Use feature-gates command line for kube-proxy #60431
Use feature-gates command line for kube-proxy #60431
Conversation
Avoid throwing `featureGates:` into the kube-proxy yaml, since it's not in the right format. It should be ``` featureGates: AllAlpha: true ``` Since FEATURES_GATES is set to `AllAlpha=true`, we can't just throw that into the yaml file. Just pass along FEATURES_GATES in the command line instead just like we do for all other services
`>"${PROXY_LOG}"` was in the wrong spot
/test pull-kubernetes-unit |
/assign @cblecker |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, dims The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Automatic merge from submit-queue (batch tested with PRs 59365, 60446, 60448, 55019, 60431). If you want to cherry-pick this change to another branch, please follow the instructions here. |
@dims kube-proxy either uses the config from the file, or from flags, but you can't do flags + config file. This PR ends up running kube-proxy with an empty map for the feature gates, FYI. |
…cements Automatic merge from submit-queue (batch tested with PRs 62445, 62768, 60633). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Local up cluster enhancements **What this PR does / why we need it**: Networking in a cluster brought up by hack/local-up-cluster.sh was broken because kube-proxy fails to start: connectivity to the Internet is okay, but anything involving communication among services (for example, starting cluster DNS) fails. Debugging this took a while because there was no indication in the output of hack/local-up-cluster.sh that something had gone wrong. There were also some harmless "no such process" errors during cleanup. The kube-proxy startup issue was fixed in parallel by PR kubernetes#60431 but that fix turned out to be incomplete, so this PR uses a different approach, suppresses the harmless error messages (caused by a race) and also makes it more obvious when processes die by checking them regularly. **Special notes for your reviewer**: I used KUBE_ENABLE_CLUSTER_DNS=true NET_PLUGIN=kubenet hack/local-up-cluster.sh -O to start the cluster. Check the kube-dns pod and its logs to see how kube-dns fails to communicate with the API server. I've left out health checking of kubelet when run under Docker because that isn't something that I have used myself yet and I wanted to send the enhancements without further delays. I can try to add that later once you agree that such a health check is useful. **Release note**: ```release-note fix network setup in hack/local-up-cluster.sh (kubernetes#60431) better error diagnostics in hack/local-up-cluster.sh output ```
What this PR does / why we need it:
Avoid throwing
featureGates:
into the kube-proxy yaml, since it'snot in the right format. It should be
Since FEATURES_GATES is set to
AllAlpha=true
, we can't just throw thatinto the yaml file. Just pass along FEATURES_GATES in the command line
instead just like we do for all other services
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #60426
Special notes for your reviewer:
Release note: