kubernetes搭建过程中错误整理
To see the stack trace of this error execute with --v=5 or higher[root@master init]# kubeadm init --dry-runI0224 19:20:48.63311611505 version.go:251] remote version is much newer: v1.23.4; falling bac
·
To see the stack trace of this error execute with --v=5 or higher
[root@master init]# kubeadm init --dry-run
I0224 19:20:48.633116 11505 version.go:251] remote version is much newer: v1.23.4; falling back to: stable-1.17
W0224 19:20:54.451538 11505 validation.go:28] Cannot validate kube-proxy config - no validator is available
W0224 19:20:54.451572 11505 validation.go:28] Cannot validate kubelet config - no validator is available
[init] Using Kubernetes version: v1.17.17
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[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 init]# kubeadm init --config=kubeadm-init.yaml |tee master-init.log
W0224 19:22:58.393243 11682 validation.go:28] Cannot validate kube-proxy config - no validator is available
W0224 19:22:58.393302 11682 validation.go:28] Cannot validate kubelet config - no validator is available
[init] Using Kubernetes version: v1.17.6
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[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
#没有关闭swap导致
[root@master init]# sed -i "s?$(grep swap /etc/fstab)?$(grep swap /etc/fstab | awk '{print "#"$0}')?" /etc/fstab && swapoff $(grep swap /etc/fstab | awk -F# '{print $2}'|awk '{print $1}') #修改配置文件并关闭swap
更多推荐
已为社区贡献7条内容
所有评论(0)