第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

Downloading or Building Kubernetes

標簽:
Kubernetes
  • download
    在ubuntu上直接git clone https://github.com/kubernetes/kubernetes.git就可以了。
    由于防火墙等未知因素,git clone老是失败,最终采用直接在github,下载zip包,然后解压

  • build
    cd kubernetes
    make release
    如果你是小白的话,build的过程会让你安装docker
    docker的安装请参见Install

  • 问题 1
    $ make release
    +++ [0728 15:46:56] Verifying Prerequisites....
    +++ [0728 15:47:05] Building Docker image kube-build:build-cf5c558a5d
    +++ Docker build command failed for kube-build:build-cf5c558a5d

    Sending build context to Docker daemon 33.26 MB
    Step 1 : FROM gcr.io/google_containers/kube-cross:v1.6.3-0Get https://gcr.io/v1/_ping: dial tcp: i/o timeoutTo retry manually, run:
    
    docker build -t kube-build:build-cf5c558a5d --pull=false /usr1/s00295316/kubernetes-master/_output/images/kube-build:build-cf5c558a5d
    
    !!! Error in build/../build/common.sh:535
      'return 1' exited with status 1Call stack:  1: build/../build/common.sh:535 kube::build::build_image(...)  2: build/release.sh:32 main(...)
    Exiting with status 1make: *** [release] Error 1

这个问题应该是由于代理没有设置好的缘故。可是我设置了两处代理,都还是不行
export http_proxy=http://usrname:pswd@proxy.com:port
export https_proxy=https://usrname:pswd@proxy.com:port
export ftp_proxy=ftp://usrname:pswd@proxy.com:port
export all_proxy=http://usrname:pswd@proxy.com:port
添加
export KUBERNETES_HTTPS_PROXY=https://usrname:pswd@proxy.com:port
export KUBERNETES_HTTP_PROXY=http://usrname:pswd@proxy.com:port
原来还要设置docker的代理.
ubuntu: /etc/defautl/docker
export http_proxy="export https_proxy="接着就会出现另一个问题:
~/kubernetes-master$ docker build -t kube-build:build-cf5c558a5d --pull=false /usr1/s00295316/kubernetes-master/_output/images/kube-build:build-cf5c558a5d Sending build context to Docker daemon 140.8 MB Step 1 : FROM gcr.io/google_containers/kube-cross:v1.6.3-0 Get https://gcr.io/v1/_ping: x509: certificate signed by unknown authority
需要在demon中添加参数--insecure-registry gcr.io
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry gcr.io"
配置这些参数都需要重启
sudo service docker restart
或者
sudo service docker stop # to stop the service
sudo docker -d --insecure-registry gcr.io

官方guide

** 要求 **

  1. Docker
    Mac OS X:可以使用docker-machine或者boot2docker.
    Note: 设置 boot2docker vm 至少有3GB的初始内存,否则会失败 (See:#11852);不要从/tmp/中make quick-release。 (See: #14773)
    Linux with local Dockerinstructions

  2. Python

  3. Google Cloud SDK (可选)

** 脚本 **

  • run.sh: 在一个build docker容器中执行指令

    • run.sh make: Build just linux binaries in the container. Pass options and packages as necessary.

    • run.sh make cross: Build all binaries for all platforms

    • run.sh make test: Run all unit tests

    • run.sh make test-integration: Run integration test

    • run.sh make test-cmd: Run CLI tests

  • copy-output.sh: This will copy the contents of _output/dockerized/bin from any remote Docker container to the local _output/dockerized/bin.  Right now this is only necessary on Mac OS X with boot2docker when your git repo isn't under /Users.

  • make-clean.sh: Clean out the contents of _output/dockerized and remove any local built container images.

  • shell.sh: Drop into a bash shell in a build container with a snapshot of the current repo code.

  • release.sh: Build everything, test it, and (optionally) upload the results to a GCS bucket.

自动下载并建立一个默认的cluster

# wget versionexport KUBERNETES_PROVIDER=YOUR_PROVIDER; wget -q -O - https://get.k8s.io | bash# curl versionexport KUBERNETES_PROVIDER=YOUR_PROVIDER; curl -sS https://get.k8s.io | bash



作者:菲胖
链接:https://www.jianshu.com/p/3784a3a13877


點擊查看更多內(nèi)容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學(xué)習(xí),寫下你的評論
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消