项目作者: shubhanilBag

项目描述 :
Demo app for Let's Build 2020, Kolkata
高级语言: JavaScript
项目地址: git://github.com/shubhanilBag/noodle.git
创建时间: 2020-01-04T06:33:49Z
项目社区:https://github.com/shubhanilBag/noodle

开源协议:

下载


Noodle

Demo app for Let’s Build 2020, Kolkata

Setting up GCR

  • Create a service account with following permissions: Storage Admin Storage Object Creator Viewer
  • Create a JSON access token for the service account
  • Authorize your docker client to push images
  1. keyfile=<path to the downloaded json key>
  2. docker login -u _json_key --password-stdin https://us.gcr.io < $keyfile
  • Authorize your K8s cluster to pull images
  1. keyfile=<path to the downloaded json key>
  2. kubectl create secret docker-registry gcr-json-key \
  3. --docker-server=us.gcr.io \
  4. --docker-username=_json_key \
  5. --docker-password="$(cat $keyfile)" \
  6. --docker-email=admin@letsbuild.com
  7. kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gcr-json-key"}]}'