This Docker image features the tools required to interact with the Google Cloud API
(via the gcloud
CLI tool and with any Kubernetes cluster, both hosted (via the GKE)
or running on prem
Pull the latest image with
$ docker pull containersol/google-cloud-cli
You most likely will want to keep a local copy of the cache directories of gcloud
and kubectl
, so
this is the most effective way to run and use this image:
$ docker run \
--rm \
-v $(PWD)/config:/root/.config \
-v $(PWD)/kube:/root/.kube \
-it containersol/google-cloud-cli
At some point you will want to get access to the Kubernetes dashboard that's running remotely. For this you'll
have to run the kubectl proxy
command, together with some extra options for the Docker daemon so that you can
expose the right ports:
$ docker run \
--rm \
-v $(PWD)/config:/root/.config \
-v $(PWD)/kube:/root/.kube \
-p 8001:8001 \
--entrypoint /usr/bin/kubectl \
-it containersol/google-cloud-cli proxy --accept-hosts '^.+$' --address 0.0.0.0
What? | Version |
---|---|
make | > 4.1 |
$ make build
$ make run
$ make proxy
$ make release