photon icon indicating copy to clipboard operation
photon copied to clipboard

panic: runtime error: invalid memory address or nil pointer dereference when use kubeadm

Open bvivi57 opened this issue 3 years ago • 3 comments

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

bvivi57 avatar Aug 09 '22 17:08 bvivi57

Hi, in your environment is tdnf downgrade kubernetes-kubeadm a possible workaround for the moment? QuickCheck

dcasota avatar Aug 09 '22 22:08 dcasota

Hi, thanks for your help. It's OK with old version.

bvivi57 avatar Aug 31 '22 17:08 bvivi57

Hi, thanks for your help. It's OK with old version.

Please try the latest 1.23 version, it should not give the issue

prashant1221 avatar Sep 01 '22 04:09 prashant1221