This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Google Cloud
Celine Boudier edited this page Sep 1, 2017
·
9 revisions
Install GCloud SDK:
> export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
> echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
> curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
> sudo apt-get update && sudo apt-get install google-cloud-sdk
Setup project:
> gcloud auth login
> gcloud container clusters get-credentials dev --zone europe-west1-b --project decent-digit-629
See kubernetes dashboard:
> kubectl proxy
To see the Kubernetes dashboard at: http://127.0.0.1:8000/ui
Some kubectl useful commands:
- see pods:
> kubectl get pods
- see configuration:
> kubectl config view
- ssh into pod's container:
> kubectl exec -it <pod-name> -- /bin/bash
- see pod's log:
> kubectl logs <pod-name>