LoginSignup
0
0

More than 1 year has passed since last update.

kubeadmin join が動かない (kubelet isn't running or healthy.)

Posted at

Kubernetes に node を追加する際に sudo kubeadm join とするも以下のエラーでうまく動作しなかった際のメモです。

[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
[kubelet-check] Initial timeout of 40s passed.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

syslog を良く見るとこんなエラーが。

"Failed to run kubelet" err="failed to run Kubelet: misconfiguration: kubelet cgroup driver: \"systemd\" is different from docker cgroup driver: \"cgroupfs\""

動いているものと見比べた結果以下のような設定を追加することで解決しました。ここに情報がありました。

/etc/docker/daemon.json
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2"
}

うーん、前にインストールした時はこんな設定追加した覚え無いんだけどな・・・。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0