photon
photon copied to clipboard
panic: runtime error: invalid memory address or nil pointer dereference when use kubeadm
Describe the bug
When I try to do the "kubeadm init" command to initialize the first node of a kubernetes cluster, I get the following error.
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x74d0aa]
goroutine 1 [running]: k8s.io/kubernetes/vendor/github.com/modern-go/reflect2.(*frozenConfig).Type2(0x189ee20, {0x1db32d0, 0x17f4dc0})
Reproduction steps
1. install kubeadm with tdnf install kubernetes-kubeadm
2. run "kubeadm init"
Expected behavior
The kubeadm command should finish and my cluster should be initialized.
Additional context
new installation of photonOS on a vmware VM (ESXi 7.0 U2 (VM version 19))
VMware Photon OS 4.0 PHOTON_BUILD_NUMBER=2f5aad892
Hi, in your environment is tdnf downgrade kubernetes-kubeadm a possible workaround for the moment? QuickCheck
Hi, thanks for your help. It's OK with old version.
Hi, thanks for your help. It's OK with old version.
Please try the latest 1.23 version, it should not give the issue