rancher+docker+k8s搭建容器管理集群

一, 环境准备

服务器

Linux k8s-m 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

   m节点:10.0.0.202

   s1节点:10.0.0.203

   s2节点:10.0.0.204

  测试环境关闭各种墙

     systemctl stop firewalld.service

     systemctl stop firewalld.service

  docker 版本包

  https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/docker-ce-18.06.1.ce-3.el7.x86_64.rpm

  rancher 版本位stable

  

  加速的话可以根据自己的阿里云加速

  我的

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://usb391x6.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

二,部署开始

   下拉镜像

docker pull rancher/rancher:stable

   为稳定版

   

  

猜你喜欢

转载自www.cnblogs.com/kingle-study/p/10331183.html