-
Notifications
You must be signed in to change notification settings - Fork 716
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
kubeadm should warn about missing podSubnet/clusterCIDR #1011
Comments
I agree this check is necessary. |
/assign |
bump @xlgao-zju -- are you still working on this? :) |
@stealthybox Sorry for the delay. I had some personal stuff... I will fix this issue ASAP. |
@xlgao-zju |
/lifecycle active |
Given it produces unworkable configs, I would fail the init if it is not specified. |
@NeilW, do you know if this is true with previous versions of kubernetes/kubeadm? |
commented on PR: kubernetes/kubernetes#68682 (comment) |
I don't I'm afraid. I've only used this on the 1.11 cycle |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
I think, that this issue and the possible solutions to it should be discussed at some of the next kubeadm office hours meetings. |
still an issue on v1.13. Upgrading from v1.12 to v1.13 using the kubeadm upgrade guide wiped my pod subnet and restarted all my pods in a cidr outside my weave subnet in an intranet with collisions. |
I would like to work on this if its still pending , please let me know. |
@rajibmitra this PR was already sent, but we didn't decide on how to handle this check properly: |
/remove-help because the way to handle the check still hasn't been decided (or hasn't been documented on this issue). |
@astrieanna - unless you are actively engaging with the subproject on helping to triage the backlog with that team I'm going to politely ask you to stop. Contribex are guidelines, not policy. |
we actually closed the only attempt to add a warning for this as the implementation was not very clean and there was no consensus. overall an explicit podSubnet is not mandatory for CNI as a whole, but some plugins just require it. if a plugin requires it, it is outlined both in ours and their docs, thus it becomes an operator mistake if the CIDR is not passed. given the CNI plugin step is outside of kubeadm, a warning about not having a podSubnet value different from the default is not something we want to show. i'm going to close this ticket as part of triage but also would like to note that i have not seen any recent |
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T20:14:41Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"}
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T20:17:28Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T20:08:34Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"}
brightbox
Ubuntu 18.04 LTS
uname -a
):Linux srv-jlhyq 4.15.0-23-generic Updating kubeadm manifests #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
What happened?
Without a pod subnet specified, or a specific clusterCIDR specified you get:
from kube-proxy and masquerade facilities will be affected
What you expected to happen?
The clusterCIDR should be given to kube-proxy, or a warning issued during init
Given the number of CNI plugins that require a subnet specification there should be at least a warning from kubeadm about the impact of failing to tell the system what addresses the pods will be using.
How to reproduce it (as minimally and precisely as possible)?
kubeadm init without a podSubnet
Anything else we need to know?
There appears to be a bit of a battle going on between the top down allocation of system's addresses and the bottom up discovery of the system's addresses, with bits of each leaking into the instructions. Perhaps a pre-flight check is required to ensure consistency.
The text was updated successfully, but these errors were encountered: