https://rancher.com/ logo
Title
f

flat-balloon-88238

08/28/2022, 3:48 PM
Hi everyone, hope you all are doing well, I have a question, Do you know if it is possible to execute a command on a container using the latest Rancher API ?
But is there any other way to do that? I would like to implement some automation and was wondering if by using the API that would be possible
b

brainy-tomato-18651

08/28/2022, 7:47 PM
I believe there’s not. I know you can download the ssh key’s nodes from Rancher in the Nodes option and ssh them but I couldn’t ever configure the Kubernetes context for kubectl and handle the cluster. Only through Rancher.
s

straight-businessperson-27680

08/29/2022, 7:50 PM
In your scripts you can invoke
kubectl exec
into any pod