Scripts for integrating with google cloud platform
Deploy or re-deploy a kubernetes replica controller and service
# Deploy a new version of the rc and service
./kubernetes_deploy.sh myImageName app=myApp myNamespace . ./kubernetes/rc.json ./kubernetes/service.json
# Deploy new version and push additional tag (as last arg) to repository
./kubernetes_deploy.sh myImageName app=myApp myNamespace . ./kubernetes/rc.json ./kubernetes/service.json latest
- CLOUDSDK_CORE_PROJECT - project name
- CLOUDSDK_COMPUTE_ZONE - gcloud compute zone
- GCLOUD_CLUSTER - cluster to deploy to
- GCLOUD_EMAIL - email of the GCloud service account
- GCLOUD_KEY - base 64 encoded single JSON cert of the GCloud service account
- GCLOUD_REGISTRY_PREFIX - where the image registry should be located. Blank for US, "eu." for Europe
Install gcloud sdk to ~/google-cloud-sdk
Authenticate gcloud sdk