-1:
禁用防火墙和selinux
添加内核参数文件 /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
vm.swappiness = 1
0.配置docker与k8s仓库:
kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=0
1.安装kubeadm:docker kubeadm 和 kubelet、kubectl、kubernetes-cni
image.png
systemctl start docker
systemctl enable docker
systemctl enable kubelet
2.使用kubeadm完成集群初始化
并安装了网络插件:
$ kubectl apply -f https://git.io/weave-kube-1.6
却发现:很多pod没有起来。
image.png
2.1查看问题:
网友评论