I’m new to Kubernetes, I just deployed the first node following the tutorial from https://kubernetes.io/docs/setup.
All goes well until systemctl restart kubelet
, it fails to start, steps described here: Installing kubeadm | Kubernetes
In /var/log/messages I’m seeing: (whole log at the end of the post)
systemd: Started kubelet: The Kubernetes Node Agent.
systemd: Started Kubernetes systemd probe.
kubelet: I1006 19:45:34.666064 17903 server.go:411] Version: v1.19.2
F1006 19:45:34.666565 17903 server.go:265] failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory
I wonder what did I miss?
Thank you for your help!
Cluster information:
Kubernetes version: 1.19.2-0
Cloud being used: bare-metal
Installation method: yum
Host OS: CentOS Linux release 7.8.2003 (Core), sestatus - permissive
CNI and version: Container Network Interface - I don’t recall configuring any
CRI and version: 1.13.0-0
Oct 6 19:45:34 hostname systemd: Started kubelet: The Kubernetes Node Agent.
Oct 6 19:45:34 hostname systemd: Started Kubernetes systemd probe.
Oct 6 19:45:34 hostname kubelet: I1006 19:45:34.666064 17903 server.go:411] Version: v1.19.2
Oct 6 19:45:34 hostname kubelet: F1006 19:45:34.666565 17903 server.go:265] failed to run Kubelet: unable to load bootstrap kubeconfig: stat /etc/kubernetes/bootstrap-kubelet.conf: no such file or directory
Oct 6 19:45:34 hostname kubelet: goroutine 1 [running]:
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.stacks(0xc000010001, 0xc0001f6360, 0xb0, 0x102)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:996 +0xb9
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).output(0x6cf6140, 0xc000000003, 0x0, 0x0, 0xc0002748c0, 0x6b49c19, 0x9, 0x109, 0x0)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:945 +0x191
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).printDepth(0x6cf6140, 0xc000000003, 0x0, 0x0, 0x1, 0xc00113fc80, 0x1, 0x1)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:718 +0x165
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).print(...)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:703
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.Fatal(...)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1436
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/cmd/kubelet/app.NewKubeletCommand.func1(0xc000206b00, 0xc00004e090, 0x3, 0x3)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:265 +0x63e
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute(0xc000206b00, 0xc00004e090, 0x3, 0x3, 0xc000206b00, 0xc00004e090)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:846 +0x2c2
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc000206b00, 0x163b7ed2699daf34, 0x6cf5c60, 0x409b05)
Oct 6 19:45:34 hostname systemd: kubelet.service: main process exited, code=exited, status=255/n/a
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:950 +0x375
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute(...)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:887
Oct 6 19:45:34 hostname kubelet: main.main()
Oct 6 19:45:34 hostname kubelet: _output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/kubelet.go:41 +0xe5
Oct 6 19:45:34 hostname kubelet: goroutine 6 [chan receive]:
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/klog/v2.(*loggingT).flushDaemon(0x6cf6140)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:1131 +0x8b
Oct 6 19:45:34 hostname kubelet: created by k8s.io/kubernetes/vendor/k8s.io/klog/v2.init.0
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/klog/v2/klog.go:416 +0xd8
Oct 6 19:45:34 hostname kubelet: goroutine 194 [select]:
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/go.opencensus.io/stats/view.(*worker).start(0xc00046a050)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/go.opencensus.io/stats/view/worker.go:154 +0x105
Oct 6 19:45:34 hostname kubelet: created by k8s.io/kubernetes/vendor/go.opencensus.io/stats/view.init.0
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/go.opencensus.io/stats/view/worker.go:32 +0x57
Oct 6 19:45:34 hostname kubelet: goroutine 226 [select]:
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0x4794628, 0x4becee0, 0xc000b9c360, 0x1, 0xc0001480c0)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:167 +0x149
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil(0x4794628, 0x12a05f200, 0x0, 0xc0002b5601, 0xc0001480c0)
Oct 6 19:45:34 hostname systemd: Unit kubelet.service entered failed state.
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133 +0x98
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.Until(...)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:90
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait.Forever(0x4794628, 0x12a05f200)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:81 +0x4f
Oct 6 19:45:34 hostname kubelet: created by k8s.io/kubernetes/vendor/k8s.io/component-base/logs.InitLogs
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/component-base/logs/logs.go:58 +0x8a
Oct 6 19:45:34 hostname kubelet: goroutine 228 [syscall]:
Oct 6 19:45:34 hostname kubelet: os/signal.signal_recv(0x0)
Oct 6 19:45:34 hostname kubelet: /usr/local/go/src/runtime/sigqueue.go:147 +0x9d
Oct 6 19:45:34 hostname kubelet: os/signal.loop()
Oct 6 19:45:34 hostname kubelet: /usr/local/go/src/os/signal/signal_unix.go:23 +0x25
Oct 6 19:45:34 hostname kubelet: created by os/signal.Notify.func1.1
Oct 6 19:45:34 hostname kubelet: /usr/local/go/src/os/signal/signal.go:150 +0x45
Oct 6 19:45:34 hostname kubelet: goroutine 229 [chan receive]:
Oct 6 19:45:34 hostname kubelet: k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server.SetupSignalContext.func1(0xc0002b0f50)
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/signal.go:48 +0x36
Oct 6 19:45:34 hostname kubelet: created by k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server.SetupSignalContext
Oct 6 19:45:34 hostname kubelet: /workspace/anago-v1.19.2-rc.0.12+19706d90d87784/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/server/signal.go:47 +0xf3
Oct 6 19:45:34 hostname systemd: kubelet.service failed.