Build local Kubernetes env

Source: Internet
Author: User
Tags k8s

https://github.com/kubernetes/community/blob/master/contributors/devel/development.md# Building-kubernetes-on-a-local-osshell-environment

Download various mirrors as required

Go get GITHUB.COM/TOOLS/GODEP

Download Kubernetes code placed in a temp directory

Then create the K8s.io under Gopath because the import path of the code inside the source is k8s.io/xxx/xxx

After creating the K8s.io, the Kubernertes code is tested to K8s.io below

Cp-r/home/allen/tmp/kubernetes $GOPATH/k8s.io/kubernetes

Installing GODEP, equivalent to the Java Maven

Go get GITHUB.COM/TOOLS/GODEP

Enter the Kubernetes directory with the Godeps folder below

Current project directory Run

GODEP Restore

After GODEP restore executes, GODEP will follow the Godeps/godeps.json list and execute go get-d-V to download the corresponding dependency package to the Gopath path.

sudo build/run.sh make cross kube_fastbuild=true arch=amd64

CD Cluster/images/hyperkube

sudo make version=your-version arch=amd64 build

Your first build image

Build local Kubernetes env

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.