You just found the kubectl
you were looking for.
Start a shell with kubectl
in your kubernetes cluster:
K8S_VERSION=1.13
kubectl run -it --restart=Never --image missimg/kubectl:$K8S_VERSION --command /bin/sh my-kubectl-pod
Run kubectl
commands locally:
KUBECONFIG=$HOME/.kube/config
K8S_VERSION=1.13
docker run -it --rm -u $(id -u) -v $KUBECONFIG:/workspace/.kube/config missimg/kubectl:$K8S_VERSION \
get nodes