Jin Yong's martial Arts "the Big moved"--kubenetes1.4 container cluster construction

Source: Internet
Author: User

1 Initializing the environment

Off SELinux off selinux off SELinux

1.1 Environment:centos7.2
node ip
node-1 192.168.93.201
node-2 192.168.93.202
node-3 192.168.93.203
1.2 Setting hostname
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


1.3 Configuring the Hosts
Vi/etc/hosts
ip hostname
192.168.93.201
Kube.master
192.168.93.202 Kube.salve1
192.168.93.203 Kube.salve2


2 Deployment Kubernetes master2.1Installing Docker

Increase Repo

tee/etc/yum.repos.d/docker.repo

[dockerrepo]name=docker repositorybaseurl=https: //yum.dockerproject.org/repo/main/centos/7/

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

Eof



Install the Docker Package


yum docker-

systemctl enable docker.service

Systemctl Start Docker



2.2 Adding Yum
Cat <<EOF>/etc/yum.repos.d/k8s.repo[kubelet]name=kubeletbaseurl=http://files.rm-rf.ca/rpms/kubelet/ Enabled=1gpgcheck=0eof
Yum Makecacheyum install-y socat kubelet kubeadm kubectl KUBERNETES-CNI


2.3 Download Image
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/$image Namedone








Jin Yong Martial Arts "the Universe Big moved"--kubenetes1.4 container cluster construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.