赞
踩
一 、执行初始化时出现一下报错
[root@master ~]# kubeadm init --apiserver-advertise-address=0.0.0.0 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.18.0 --service-cidr=10.96.0.0/12
W0430 17:41:57.941882 91467 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.18.0
[preflight] Running pre-flight checks
[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/
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
[root@master ~]# cat /proc/sys/net/ipv4/ip_forward ##检查路由转发是否等于“1"
0
[root@master ~]# echo "1" > /proc/sys/net/ipv4/ip_forward ##如不是侧修改配置文件。
[root@master ~]# cat /proc/sys/net/ipv4/ip_forward
1
二、node 节点对接master时显示以下报错
侧可能上一次node节点数据没有清楚,需执行”kubeadm reset“后重新对接。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。