[root@k8s01-zongshuai k8s]# kubeadm init --kubernetes-version v1.18.6 --service-cidr=10.2.0.0/16 --pod-network-cidr=10.244.0.0/16
W1123 14:53:16.361212 31986 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.6
[preflight] Running pre-flight checks
[WARNING HTTPProxy]: Connection to "https://172.16.43.156" uses proxy "http://172.16.19.108:8899". If that is not intended, adjust your proxy settings
[WARNING HTTPProxyCIDR]: connection to "10.2.0.0/16" uses proxy "http://172.16.19.108:8899". This may lead to malfunctional cluster setup. Make sure that Pod and Services IP ranges specified correctly as exceptions in proxy configuration
[WARNING HTTPProxyCIDR]: connection to "10.244.0.0/16" uses proxy "http://172.16.19.108:8899". This may lead to malfunctional cluster setup. Make sure that Pod and Services IP ranges specified correctly as exceptions in proxy configuration
解决办法:
vim /etc/profile export no_proxy=localhost,172.16.0.0/16,192.168.0.0/16,127.0.0.1,10.10.0.0/16,192.168.1.0/24,10.2.0.0/12,10.244.0.0/16