Tools to help you connect to Google Cloud pods.
You can point you web browser to https://console.cloud.google.com and click your way to your cloud-deployed servers. You've probably done that before you've contrived the arguably particular commands (providing you installed Python, the Google Cloud SDK and kubectl on your own computer).
If you wanted something simpler than that, just something to get you to the command prompt you're otherwise used to, then this may help.
- Docker & Docker Compose
make
This will:
- download and install the Google Cloud SDK into a Docker container, so you need not install it
- build the application container, so you don't need Ruby or a local installation
- authenticate with Google Cloud, so you can access your GCloud stuff
- show your GCloud projects, so you can pick the one you want
- show the K8S clusters in that project, so you can pick the one you want
- show the K8S namespaces in that cluster, so you can pick the one you want
- show the K8S pods in that cluster, so you can pick the one you want
- show the K8S containers in that pod, so you can pick the one you want
- connect to your container, using
bash
, so you can do what you wanted to do.
Information entered at each stage will be stored for the next time, up to the pods, though you can start afresh too.
make clean
This will:
- stop any currently-running instances
- remove the instances
- remove cached data, e.g. Google auth tokens, last project used
Changes to the Google APIs may require the Google SDK image to be updated. This can be achieved by:
make vacuum
This will:
- all steps in
make clean
- remove the Google SDK image.
The make
command will then download the latest Google SDK image.