Sign inSign up

yohgi/gke-cli

By yohgi

•Updated over 8 years ago

Google Kubernetes Engine command line tools

Image
0

313

yohgi/gke-cli repository overview

⁠How To Use

⁠Start up

$ docker run \
  `[ -d "$HOME/.config" ] && echo "-v \$HOME/.config:/root/.config"` \
  --name gke-cli \
  -it \
  yohgi/gke-cli

or

$ cd /path/to/project
$ docker run \
  -v `pwd`:/share \
  `[ -d "$HOME/.config" ] && echo "-v \$HOME/.config:/root/.config"` \
  --name gke-cli \
  -it \
  yohgi/gke-cli

⁠set up

# gcloud auth login
# gcloud projects list
# gcloud config set project <PROJECT ID>
# gcloud config set compute/zone asia-northeast1-a

⁠Aurhorize

# gcloud container cluster list
# gcloud container clusters get-credentials <CLUSTER NAME>
# kubectx <NEW SHORT CONTEXT NAME>=.
# kubect get all

⁠Restart container

$ docker start -i gke-cli
# kubectl get all

⁠tools

Tag summary

Content type

Image

Digest

Size

286.5 MB

Last updated

over 8 years ago

docker pull yohgi/gke-cli