【kubectl】The connection to the server localhost:8080 was refused - did you specify the right host or

  1. Server【kubectl】The connection to the server localhost:8080 was refused - did you specify the right host or_第1张图片

  2. Agent
    【kubectl】The connection to the server localhost:8080 was refused - did you specify the right host or_第2张图片

  3. journalctl -xefu kubelet

failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"
  1. docker info
    【kubectl】The connection to the server localhost:8080 was refused - did you specify the right host or_第3张图片

  2. vi /etc/docker/daemon.json
    添加一行:
    “exec-opts”: [“native.cgroupdriver=systemd”],

  3. 重启docker
    systemctl daemon-reload
    systemctl restart docker
    【kubectl】The connection to the server localhost:8080 was refused - did you specify the right host or_第4张图片

你可能感兴趣的:(容器相关)