安装规划

HostIPsoft
master10.0.0.120kube-apiserver,kube-controller-manager,kube-scheduler,etcd,flannel,kubernetes-dashboard
node0110.0.0.121
node0210.0.0.122

下载安装包:因为k8s的镜像在google上,不翻墙无法上去,这里就送上安装包,下载解压即可

链接:https://pan.baidu.com/s/1eUixGvo 密码:65yo

yum install -y bzip2
tar -xjvf k8s_images.tar.bz2

安装依赖

#yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm

#yum install -y ftp://ftp.icm.edu.pl/vol/rzm6/linux-slc/centos/7.1.1503/cr/x86_64/Packages/libseccomp-2.2.1-1.el7.x86_64.rpm

替换docker国内源

[root@hosts01 ~]# curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://a58c8480.m.daocloud.io
docker version >= 1.12
{
  "registry-mirrors": ["http://a58c8480.m.daocloud.io"],
  "insecure-registries":["10.0.0.122:5000"]
}
Success.
You need to restart docker to take effect: sudo systemctl restart docker
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐