ZBLOG

Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service. [root@master ~]# kubeadm init \--apiserver-advertise-address=10.128.23.80 \--image-repository registry.aliyuncs.com/google...

The error message suggests that there are some pre-flight checks that have failed, specifically related to the HTTP proxy and swap space.

To resolve the HTTP proxy warnings, you need to ensure that the Pod and Services IP ranges are specified correctly as exceptions in your proxy configuration. You can also adjust your proxy settings if necessary.

To resolve the swap space error, you need to disable swap on your system before running kubeadm init. You can do this by running:

sudo swapoff -a

This will temporarily disable swap for the current session. To permanently disable swap, you should comment out any lines containing ‘swap’ in your /etc/fstab file.

Once you have resolved these issues, you can try running kubeadm init again with the same command:

kubeadm init --apiserver-advertise-address=10.128.23.80 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.18.0 --service-cidr=10.96.0.0/12 --pod-network-cidr=10.244.0.0/16

If there are still errors or warnings, try using --ignore-preflight-errors flag to skip specific checks or increase verbosity with --v=5 flag to see more detailed error messages and stack traces.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=752

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?