You are viewing a single comment's thread from:

RE: 部署 k8s Cluster(上) — Kubernetes(5)

in #kubernetes7 years ago

[preflight] WARNING: docker version is greater than the most recently validated version. Docker version: 17.09.0-ce. Max validated version: 17.03
[preflight] WARNING: Connection to "https://10.10.103.25:6443" uses proxy "http://127.0.0.1:38251". If that is not intended, adjust your proxy settings
[preflight] Some fatal errors occurred:
/etc/kubernetes/manifests is not empty
running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can skip pre-flight checks with --skip-preflight-checks

直接init提示这个 ,然而我swapoff一直失败

Sort:  

先用 kubeadm reset 清理一下环境,另外建议用 apt-get install docker.io 安装 docker,这样安装出来的是 k8s 推荐的 docker 版本

/etc/kubernetes/manifests is not empty
这个是要 rm -rf /etc/kubernetes/manifests/*

manifests 是删了.
而swap怎么都关不掉,我也很无奈.

fstab注释了,重启