SOLVED Connect to scale apps using ssh

Adnan

Dabbler
Joined
Sep 4, 2015
Messages
22
Hi,
I can access the shell of the scale apps using the menu on the app icon. But I want to connect to the apps using SSH from other terminal. I assume it is some Kubernetes command to connect to the apps but I cannot figure it out.

Please guide me.
 

Heavy

Explorer
Joined
Aug 12, 2021
Messages
57
Heavyscript has this capability.
It is a nice automated way to do it.
I mentioned that here:

or Manually:
  1. View container namespaces: k3s kubectl get namespaces.
  2. View pods by namespace: k3s kubectl get -n <NAMESPACE> pods.
  3. Access container shell: k3s kubectl exec -n <NAMESPACE> --stdin --tty <POD> -- /bin/bash.
 

Adnan

Dabbler
Joined
Sep 4, 2015
Messages
22
Heavyscript has this capability.
It is a nice automated way to do it.
I mentioned that here:

or Manually:
  1. View container namespaces: k3s kubectl get namespaces.
  2. View pods by namespace: k3s kubectl get -n <NAMESPACE> pods.
  3. Access container shell: k3s kubectl exec -n <NAMESPACE> --stdin --tty <POD> -- /bin/bash.
Many thanks for the support
 

Adnan

Dabbler
Joined
Sep 4, 2015
Messages
22
Coming up again. I want to edit some text files in one of my pods in SCALE. But I cannot use nano or vim. What is your suggestion in this regards?

Shall I open a new thread for the question?
 

crkinard

Explorer
Joined
Oct 24, 2019
Messages
80
Code:
Host plex
    HostName dock.lan
    User crkinard
    RemoteCommand sudo k3s kubectl exec -it -n ix-plex "$(sudo k3s kubectl get pods -n ix-plex | grep plex | awk 'NR==1{print $1}')" -- /bin/bash
    RequestTTY force
 
Top