Volantis
文档
帮助
示例
社区
博客
源码
12345678910111213141516
sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-enginesudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.reposudo sed -i 's/$releasever/7/g' /etc/yum.repos.d/docker-ce.reposudo yum update -ysudo yum install yum-utils docker-ce docker-ce-cli containerd.io -ysudo systemctl start docker
123456
kubeadm init --pod-network-cidr 10.244.0.0/16 --control-plane-endpoint k8s-control-plane-endpoint-vip:6443 --upload-certs --kubernetes-version=v1.22.1kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml# 允许master节点进行负载kubectl taint nodes --all node-role.kubernetes.io/master-vim /etc/kubernetes/manifests/kube-apiserver.yaml#- --service-node-port-range=1000-32000
12
# 加入控制平面kubeadm join k8s-control-plane-endpoint-vip:6443 --token xxxxxx.xxxxxxxxxxxxxxxx --discovery-token-ca-cert-hash sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --control-plane --certificate-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx