Skip to content

Instantly share code, notes, and snippets.

@edude03

edude03/block3. Secret

Created November 27, 2018 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edude03/4150edf83c4f104dbb75c57473de63f2 to your computer and use it in GitHub Desktop.
Save edude03/4150edf83c4f104dbb75c57473de63f2 to your computer and use it in GitHub Desktop.
# Download and save the service account json file somewhere, in this example, it's `sa.json`
# "login" using the service account
gcloud auth activate-service-account - key-file=sa.json
# Run get credentials
gcloud container clusters get-credentials
# Test that it works
kubectl get pods -n staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment