-
Notifications
You must be signed in to change notification settings - Fork 706
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
Need a way to disable version lookup when doing kubeadm init phase upload-certs #2510
Comments
most kubeadm commands construct a kubeadm config in memory to be able to operate. for ClusterConfiguration.kubernetesVersion
https://pkg.go.dev/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta2 let me know if that works. /kind support |
Sorry it doesn't work.
|
Why not pass an initconfiguration too? |
I think it does work this time, thank you very much. |
Is this a request for help?
What keywords did you search in kubeadm issues before filing this one?
--kubernetes-version
,upload-certs
,dl.k8s.io
Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST (since I think I didn't see an option to disable this)
Versions
v1.21, v1.20, v1.19, v1.18, v1.17 (this happens in all versions)
Environment:
I am testing this using a kind v1.17.17
kubectl version
):root@kind-v1:/# kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.17", GitCommit:"f3abc15296f3a3f54e4ee42e830c61047b13895f", GitTreeState:"clean", BuildDate:"2021-01-22T22:20:06Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
uname -a
): Linux kind-v1.17-control-plane 5.10.25-linuxkit kubeadm join on slave node fails preflight checks #1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxWhat happened?
When running
kubeadm trying to access
https://dl.k8s.io/release/stable-1.txt
and we are requesting an option to disable this lookup.As far as we can see, there is no way to simply disable this lookup.
The reason is that we are using kubeadm in a private cloud and the Masters do not have public internet access.
For now we can wait for it to timeout when doing
upload-certs
, but we really want to avoid making external network call at all.What you expected to happen?
There should be a command line option to disable this lookup.
How to reproduce it (as minimally and precisely as possible)?
In any env, including
kind
env, executeand observe
Anything else we need to know?
The text was updated successfully, but these errors were encountered: