Possible to execute a command inside minikube without SSH into it and then executing command

12/6/2019

Just curious if it is possible to execute a command inside minikube without doing minikube ssh and then executing the command.

Something like:

minikube ssh exec -it <command>

-- eox.dev
kubernetes
minikube

2 Answers

12/30/2019

You could do something like this to execute a command directly to the minikube node:

ssh -i $(minikube ssh-key) docker@$(minikube ip) <command>

I hope that this helps.

-- Victor Jimenez
Source: StackOverflow

12/6/2019

According to the minikube documentation (https://minikube.sigs.k8s.io/docs/reference/commands/ssh/) there is no such option.

-- Dávid Molnár
Source: StackOverflow