Skip to content

BigWednesdayIO/kubernetes-deployment-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Platform Integration

Scripts for integrating with google cloud platform

kubernetes_deploy.sh

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

Required variables

  • 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_sdk.sh

Install gcloud sdk to ~/google-cloud-sdk

authenticate.sh

Authenticate gcloud sdk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages