标签:kubenetes1.4
关闭selinux 关闭selinux 关闭selinux
节点 | IP |
---|---|
node-1 | 192.168.93.201 |
node-2 | 192.168.93.202 |
node-3 | 192.168.93.203 |
hostnamectl --static set-hostname hostname
IP | hostname |
---|---|
192.168.93.201 | kube.master |
192.168.93.202 | kube.salve1 |
192.168.93.203 | kube.salve2 |
vi /etc/hosts
IP | hostname |
---|---|
192.168.93.201 | kube.master |
192.168.93.202 | kube.salve1 |
192.168.93.203 | kube.salve2 |
增加repo
tee /etc/yum.repos.d/docker.repo <<-‘EOF‘
[dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
Install the Docker package
yum install docker-engine -y
systemctl enable docker.service
systemctl start docker
cat <<EOF> /etc/yum.repos.d/k8s.repo [kubelet] name=kubelet baseurl=http://files.rm-rf.ca/rpms/kubelet/ enabled=1 gpgcheck=0 EOF
yum makecache yum install -y socat kubelet kubeadm kubectl kubernetes-cni
images=(kube-proxy-amd64:v1.4.5 kube-discovery-amd64:1.0 kubedns-amd64:1.7 kube-scheduler-amd64:v1.4.5 kube-controller-manager-amd64:v1.4.5 kube-apiserver-amd64:v1.4.5 etcd-amd64:2.2.5 kube-dnsmasq-amd64:1.3 exechealthz-amd64:1.1 pause-amd64:3.0 kubernetes-dashboard-amd64:v1.4.1) for imageName in ${images[@]} ; do docker pull jicki/$imageName docker tag jicki/$imageName gcr.io/google_containers/$imageName docker rmi jicki/$imageName done
金庸武功之“乾坤大挪移”--kubenetes1.4容器集群搭建
标签:kubenetes1.4
原文地址:http://mxlmgl.blog.51cto.com/9834691/1872910