在启动kubernets的时候报错

kubeadm init --kubernetes-version=v1.14.1 --pod-network-cidr=10.11.0.0/16 --service-cidr=10.12.0.0/12 --ignore-preflight-errors=Swap
[init] Using Kubernetes version: v1.14.1
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1

检查原因:
提示设置Iptables为1,且CPU最低要求2个
[root@master ~]# echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables
[root@master ~]# cat /proc/sys/net/bridge/bridge-nf-call-iptables
1
升级虚拟机配置

猜你喜欢

转载自blog.51cto.com/cainiaibage/2384803
今日推荐