Skip to content

Add support for running kubectl remotely as an alternative #10843

@afbjorklund

Description

@afbjorklund

Some clients don't have the possibility to run the kubernetes client locally, due to binaries not being available...

But we already install kubectl on the control plane in the cluster, so we can run that using the ssh connection.

$ minikube kubectl --ssh=false -- get nodes
NAME       STATUS   ROLES                  AGE   VERSION
minikube   Ready    control-plane,master   12h   v1.20.2
$ minikube kubectl --ssh=true -- get nodes
NAME       STATUS   ROLES                  AGE   VERSION
minikube   Ready    control-plane,master   12h   v1.20.2

This makes minikube accessible on more platforms.

Especially when using the ssh driver for the cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmd/kubectlIssues with the "kubectl" commandkind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions