首页 > 代码库 > 利用kubeadm部署kubernetes with flannel

利用kubeadm部署kubernetes with flannel

1、安装环境为CentOS 7

 

2、安装Docker

  • yum install -y docker
  • systemctl enable docker
  • systemctl start docker

 

3、安装CNI

  • cat <<EOF > /etc/yum.repos.d/kubernetes.repo
    [kubernetes]
    name=Kubernetes
    baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
           https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    EOF
  • setenforce 0
  • yum install -y kubernetes-cni

 

4、安装kubernetes其他组件

利用kubeadm部署kubernetes with flannel