Skip to content

Instantly share code, notes, and snippets.

@tribou
Last active November 12, 2017 18:34
Show Gist options
  • Save tribou/321ef95e97f0fca0da89 to your computer and use it in GitHub Desktop.
Save tribou/321ef95e97f0fca0da89 to your computer and use it in GitHub Desktop.
# On OSX, install brew for all the things
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Brew Caskroom
brew install caskroom/cask/brew-cask
# Install Google Cloud SDK
brew cask install google-cloud-sdk
# After installing, follow the printed instructions to add the paths
# and bash completions to your path
# Authenticate your account
gcloud auth login
# Ensure you have the latest gcloud commands
gcloud components update
# Install kubectl command as well
gcloud components update kubectl
# Add shortcut defaults for the gcloud command
# Set default project
gcloud config set project your-project-id
# Set default compute zone
gcloud config set compute/zone us-central1-a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment