Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

GCloud: Accessing Bash or the Rails Console

Paul Danelli edited this page Mar 18, 2022 · 1 revision

Note, be very careful with the commands you input into the production/staging shell and Rails console

Access Bash or the Rails console

Switch to the required cluster.

You can then get the list of pods that are related to hyku:

kubectl get pods | grep hyku

This will give you a list of hyku pods for that cluster.

hyku-679897cdc8-22ngd                                 1/1     Running     0          12m
hyku-679897cdc8-97cxd                                 1/1     Running     0          72m
hyku-679897cdc8-f2ks4                                 1/1     Running     0          132m
hyku-679897cdc8-kpfm2                                 1/1     Running     0          102m
hyku-679897cdc8-lfggc                                 1/1     Running     0          150m
hyku-679897cdc8-q7ftx                                 1/1     Running     0          42m

You can then use any of these pods and exec a command to access different functions:

# Access the shell
kubectl exec -it hyku-679897cdc8-22ngd -- /bin/bash

# Access the Rails console
kubectl exec -it hyku-679897cdc8-22ngd -- bundle exec rails console

Clone this wiki locally