Skip to main content

Start a Remote Shell in Backend Server

Some specialized procedures require the user to enter commands in a remote shell on a running Credo AI backend server.

Start Shell

Using kubectl, exec into a running credoai-server pod and execute the iex remote command.

tip

See elixir iex for more information about the shell environment.

❯ kubectl exec -it deploy/credoai-server \
-n credoai-ns -- \
./bin/credo_backend remote

Erlang/OTP 25 [erts-13.2.2.9] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]

Interactive Elixir (1.14.5) - press Ctrl+C to exit (type h() ENTER for help)
iex(credo@10-0-0-1.credoai-ns.pod.cluster.local)1>

Stop Shell

After exiting you will return to the terminal where you issued the kubectl command from.

tip

The exiting the shell documentation gives more details.

iex(credo@10-0-0-1.credoai-ns.pod.cluster.local)1> <Ctrl-C>
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
(l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
^C⏎