按文档安装 kubeadm,kubelet,kubectl,kubernetes-cni,docker-ce
ps:- 处理环境
swapoff -avi /etc/fstab
cat << EOF > /etc/docker/daemon.json{ "exec-opts": ["native.cgroupdriver=systemd"]}EOF
cat > /etc/systemd/system/kubelet.service.d/20-pod-infra-image.conf <
apiVersion: kubeadm.k8s.io/v1alpha1kind: MasterConfigurationetcd: image: mirrorgooglecontainers/etcd-amd64:3.1.10networking: podSubnet: 10.96.0.10/16kubernetesVersion: v1.9.2imageRepository: mirrorgooglecontainers
其他问题:
centos7添加bridge-nf-call-ip6tables出现No such file or directory:按文档使用 kubeadm 初始化环境
镜像:安装kube-router
添加从节点
kubeadm token create kubeadm join