1. 程式人生 > >利用kubeadm部署kubernetes with flannel

利用kubeadm部署kubernetes with flannel

googl class check -s google start x86_64 with rep

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