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
Alexandru Dan edited this page Aug 30, 2017
·
9 revisions
Useful links on Kubernetes, Docker and Containers in general:
- Containers and Cloud general information
- Docker Overview
- Kubernetes Overview
- Google Cloud 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
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>