Welcome to the Linux Foundation Forum!

kubeadm question (Lab Exercises 3.1)

hi
this is my tools : kubeadm=1.22.1-00 kubelet=1.22.1-00 kubectl=1.22.1-00

the kubeadm-config.yaml

`
apiVersion: kubeadm.k8s.io/v1beta22
kind: ClusterConfiguration
kubernetesVersion: 1.22.1
controlPlaneEndpoint: "k8scp:6443"
networking:
podSubnet: 172.16.0.0/16
root@k8s-test:~#

`

but when i run "kubeadm init --config=kubeadm-config.yaml --upload-certs --v=5" i always get
root@k8s-test:~# kubeadm init --config=kubeadm-config.yaml --upload-certs --v=5| tee kubeadm-init.out I0813 01:16:52.871663 2181 initconfiguration.go:255] loading configuration from "kubeadm-config.yaml" W0813 01:16:52.872449 2181 initconfiguration.go:306] unknown configuration schema.GroupVersionKind{Group:"kubeadm.k8s.io", Version:"v1beta22", Kind:"ClusterConfiguration"} no kind "ClusterConfiguration" is registered for version "kubeadm.k8s.io/v1beta22" in scheme "cmd/kubeadm/app/apis/kubeadm/scheme/scheme.go:32" root@k8s-test:~#
i checked letter for letter its the example from the excercise. also looked in vi if theres a "special char" but there isnt.

kinda dont know whats wrong.

Best Answer

  • mmaussner
    mmaussner Posts: 5
    Answer ✓

    ok found the problem. the second "2" in v1beta2 was too much.

Categories

Upcoming Training