-
Notifications
You must be signed in to change notification settings - Fork 71
Google Cloud
Useful links on Kubernetes, Docker and Containers in general:
- Containers and Cloud general information
- Docker Overview
- Kubernetes Overview
- Pods
- Replication Controllers
- Deployments
Reverse Proxies
Cheat sheets:
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 kubernates dashboard:
> kubectl proxy
To see the Kubernates dashboard at: http://127.0.0.1:8000/ui
Kubectl cheat sheet: https://kubernetes.io/docs/user-guide/kubectl-cheatsheet/
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>