K8s部署部署遇到问题及解决方法
问题1:To see the stack trace of this error execute with --v=5 or higher这是因为服务器的内存及处理器内核总数配置过低导致,需要提升配置问题2:/proc/sys/net/bridge/bridge-nf-call-iptables does not exist解决方法modprobe br_netfilterecho 1 >
·
问题1:To see the stack trace of this error execute with --v=5 or higher
这是因为服务器的内存及处理器内核总数配置过低导致,需要提升配置
问题2:/proc/sys/net/bridge/bridge-nf-call-iptables does not exist
解决方法
modprobe br_netfilter
echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
echo 1 > /proc/sys/net/ipv4/ip_forward
问题3:failed to connect: failed to connect: context deadline exceeded
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
overlay
br_netfilter
EOF
cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
net.bridge.bridge-nf-call-ip6tables=1
EOF
问题4:error execution phase upload-config/kubelet: Error writing Crisocket information for the control-plane node: nodes "k8s-master" not found
解决方法
swapoff -a
kubeadm reset
systemctl daemon-reload
systemctl restart kubelet
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X
更多推荐
已为社区贡献1条内容
所有评论(0)