detected “cgroupfs”

错误提示:

[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/

解决方案:

# 在/etc/docker下创建daemon.json并编辑
vim /etc/docker/daemon.json
# 修改内容
{
 "exec-opts":["native.cgroupdriver=systemd"]
}
# 执行命令
systemctl restart docker
systemctl status docker

node节点加入kubeadm部署的集群中出现错误 [ERROR FileContent–proc-sys-net-ipv4-ip_forward]

错误提示:

[ERROR FileContent–proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1

解决方案:

sysctl -w net.ipv4.ip_forward=1

kubeadm init出错:remote version is much newer: v1.21.0

错误提示:
提示版本不一致

remote version is much newer: v1.21.0; falling back to: stable-1.17
[preflight] You can also perform this action in beforehand using ‘kubeadm config images pull’

解决方案:
带上k8s版本

kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.x.x --kubernetes-version=v1.18.0

The connection to the server IP was refused - did you specify the right host or port?

电脑异常,关机重启后,试了一下集群是否正常,结果执行kubectl get nodes命令,报错:The connection to the server IP:6443 was refused - did you specify the right host or port?


[ERROR FileContent–proc-sys-net-ipv6-conf-default-forwarding]: /proc/sys/net/ipv6/conf/default/forwarding contents are not set to 1

对master初始化时,执行yaml文件报错
在这里插入图片描述
解决方案:

echo 1 > /proc/sys/net/ipv6/conf/default/forwarding



在这里插入图片描述

如果对你有帮助,

点个关注,一起进步。

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐