项目作者: PeterKneale

项目描述 :
Sample Code: Sparrow: Kubernetes Infrastructure + Google Cloud Deployment
高级语言:
项目地址: git://github.com/PeterKneale/sparrow.inf.git
创建时间: 2016-10-13T12:22:59Z
项目社区:https://github.com/PeterKneale/sparrow.inf

开源协议:

下载


Sparrow

Sparrow INF

Google Cloud Deployment

Instructions for how to deploy the sparrow project onto google cloud infrastructure using kubernetes.

Install tools

Setup project

  • Login to Google Cloud
  • Create a project ‘sparrow’ (id: simplicate-sparrow-project)

Setup auth

  • Login to your account from the console which will spawn a browser
    1. gcloud auth application-default login

Create cluster

  • Create a cluster
    1. gcloud container clusters create sparrow-cluster --scopes bigquery,cloud-platform,cloud-source-repos,cloud-source-repos-ro,compute-ro,compute-rw,datastore,logging-write,monitoring,monitoring-write,service-control,service-management,sql,sql-admin,storage-full,storage-ro,storage-rw,taskqueue,useraccounts-ro,useraccounts-rw,userinfo-email

Setup proxy

  • Start up a proxy to connect to the Kubernetes control plane:
    1. kubectl proxy
  • Goto http://localhost:8001/ui and you should be able to see kubernetes

  • if you get stale ip’s / ssl errors then try this:

    1. gcloud container clusters get-credentials sparrow-cluster