Kubernetes
無效的子命令:使用 kubeadm 上傳配置時的“upload”
當我想使用 kubeadm
kubeadm version: &version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:03:28Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
上傳這樣的配置文件時:kubeadm config upload from-file --kubeconfig kubeadm-config.yaml
它給了我錯誤:
[root@k8smasterone config]# kubeadm config upload from-file --kubeconfig kubeadm-config.yaml invalid subcommand: "upload" To see the stack trace of this error execute with --v=5 or higher
我已經閱讀了 kubeadm 手冊並沒有找到任何替換上傳,我應該怎麼做才能上傳配置文件?
我在新版本中這樣做:
kubeadm init phase upload-config kubeadm --config kubeadm-config.yaml