k8s集群安装详细指南
安装规划HostIPsoftmaster10.0.0.120kube-apiserver,kube-controller-manager,kube-scheduler,etcd,flannel,kubernetes-dashboardnode0110.0.0.121node0210.0.0.122下载安装包:因为k8s的镜像在g
·
安装规划
Host | IP | soft |
---|---|---|
master | 10.0.0.120 | kube-apiserver,kube-controller-manager,kube-scheduler,etcd,flannel,kubernetes-dashboard |
node01 | 10.0.0.121 | |
node02 | 10.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
更多推荐
已为社区贡献1条内容
所有评论(0)