现象:
your configuration file uses an old API spec: "kubeadm.k8s.io/v1beta2". Please use kubeadm v1.22 instead and run 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
1、查看 apiVersion版本
kubeadm config print init-defaults --component-configs KubeletConfiguration
2、修改初始化配置文件apiVersion版本
3、再次执行初始化配置即可
标签:初始化,old,配置文件,API,kubeadm,config,spec From: https://www.cnblogs.com/zbhlinux/p/17620598.html