kubeadm init问题

来源:1-5 下载Kubeadm,node组件和命令行工具

qq_土豆哥_0

2020-01-02

1、–pod-network-cidr=192.168.43.0/12 这个ip根据什么指定呢?

2、运行时报错 [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2 详细情况如下;

root@ubuntu:~# kubeadm init --apiserver-advertise-address=10.0.2.4 --pod-network-cidr=192.168.43.0/12
W0102 14:42:34.887576 1518 validation.go:28] Cannot validate kube-proxy config - no validator is available
W0102 14:42:34.888310 1518 validation.go:28] Cannot validate kubelet config - no validator is available
[init] Using Kubernetes version: v1.17.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 NumCPU]: the number of available CPUs 1 is less than the required 2
[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

写回答

1回答

qq_土豆哥_0

提问者

2020-01-02

问题2通过设置cpu核数解决了

0
0

Kubernetes实战 高可用集群搭建,配置,运维与应用

以生产为目标,原理+操作, Kubernetes结合典型云原生应用

794 学习 · 196 问题

查看课程