cloud-run: run one-off commands
There is nothing like kubectl exec
in Cloud Run.
@brl had the idea of supporting such "one-off" commands via the Catladder CLI's project-get-shell
.
Implementation approaches:
-
a) Run locally but with a connection to the deployed env's DB and other services
pros: interactive usage
cons: have to make sure the external services (DB, Storage etc) are accessible- a.1) Run in the local installation of the runtime
cons: not the same runtime and as the deployed env - a.2) Run the env's current container on the local machine
cons: needs container pull
- a.1) Run in the local installation of the runtime
-
b) Create a temporary Cloud Run job pros: runs in the exact same environment (resource wise, connection to other services) cons: non-interactive, only executes a single command
-
others?
Edited by Michael