Jin Yong Kung Fu "nine Yang Martial arts"--kubenetes cluster of those things

Source: Internet
Author: User
Tags docker hub etcd docker machine

I. Preface

First of all, to solve the problem is the installation source, because of the Great Wall firewall, we have to find a source for ourselves.


Kubernetes compiled a variety of distribution installation package from Github on another called release project, Address point here, the project clone down, because I am a Centos user, so enter the RPM directory, on the installation of the Docker machine to execute the The docker-build.sh script compiles the RPM package, which is then generated to the output directory of the current directory, as follows

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/BA/wKioL1hXTNyQZ5Z2AAGf7yXd85c111.png-wh_500x0-wm_3 -wmp_4-s_3532200687.png "style=" Float:none; "title=" Qq20161219105708.png "alt=" Wkiol1hxtnyqz5z2aagf7yxd85c111.png-wh_50 "/>



1.git Clone Https://github.com/kubernetes/release

2.cd rpm && ./docker-build.sh

3. A directory will be generated in the RPM directory output , under CD output/x86_64

[email protected] x86_64]# LL

Root root 6121522 Nov 07:20 kubeadm-1.6.0-0.alpha.0.2074.a092d8e0f95f52.x86_64.rpm

-rw-r--r--1 root root 6918310 Nov 07:20 kubectl-1.5.1-0.x86_64.rpm

-rw-r--r--1 root root 12722002 Nov 07:20 kubelet-1.5.1-0.x86_64.rpm

-rw-r--r--1 root root 10283710 Nov 07:20 kubernetes-cni-0.3.0.1-0.07a8a2.x86_64.rpm

Drwxr-xr-x 2 root root 4096 Nov 07:20 Repodata

4. yum install-y ebtables socat

RPM-IVH *.rpm




How the image comes in:

Using the Docker hub as a relay, simply by using the Docker Hub's auto-build feature, create a Dockerfile in Github that only needs FROM xxxx these gcr.io images, pull it locally, and then tag it.

######################################################################################


1. Register an account on GitHub, log in, build a docker-library repository

2. Upload the local server's public key to GitHub

Ssh-keygen generate the public key, and then less/root/.ssh/id_rsa.pub 把内容复制,在github的用户setting中找到SSH的设置,把刚才的内容放进去。

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/C0/wKiom1hXjZWxOt5aAAF5hWvKlTI274.png-wh_500x0-wm_3 -wmp_4-s_54953191.png "title=" Qq20161219153338.png "alt=" Wkiom1hxjzwxot5aaaf5hwvklti274.png-wh_50 "/>


3. Cloning repository to the local server

git clone [email protected]:mxl0721/docker-library

After completion in the current directory will generate and repository the same name as the directory Docker-library


[email protected] ~]# LL

Total 8

-RW-------. 1 root root 958 Nov 04:11 anaconda-ks.cfg

Drwxr-xr-x 5 root root 09:36 docker-library


4. Build the items (directories) and files you want to add in repository

mkdir ETCD-AMD64

CD ETCD-AMD64

VI Dockerfile


From Gcr.io/google_containers/etcd-amd64:3.0.14-kubeadm

Maintainer mxl0721 <[email protected]>

#################################################################




[[email protected] docker-library]# git add etcd-amd64/dockerfile

[[email protected] docker-library]# git commit-m "Add dirctory"

[[email protected] docker-library]# git push


The result after the final build is:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/C3/wKioL1hYjHfBi3jQAAFqVrj8ehs931.png-wh_500x0-wm_3 -wmp_4-s_960627262.png "title=" Qq20161220094047.png "alt=" Wkiol1hyjhfbi3jqaafqvrj8ehs931.png-wh_50 "/>


Finally create an auto-build project on the Docker Hub


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/C3/wKioL1hYjSDxQta2AAEBK8zcUW4565.png-wh_500x0-wm_3 -wmp_4-s_2010890837.png "title=" 8.png "alt=" Wkiol1hyjsdxqta2aaebk8zcuw4565.png-wh_50 "/>


































Jin Yong Kung Fu "nine Yang Martial arts"--kubenetes cluster of those things

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.