<p>I have a kubernetes cluster, and I basically have an authenticated api for deploying tasks within the cluster without having kubectl etc set-up locally. I'm aware of the client libraries etc for the Kubernetes api, however they don't seem to support all of the different primatives etc (including some custom ones like Argo). So I just wondered if there was a way I could effectively run <code>$ kubectl apply -f ./file.yml</code> within a container on the cluster? </p>

<p>Obviously I can create a container with kubectl installed, but I just wondered how that could then 'connect' to the Kubernetes controller?</p>

<p>You can choose from existing ones: <a href="https://hub.docker.com/search?q=kubectl&amp;type=image" rel="nofollow noreferrer">https://hub.docker.com/search?q=kubectl&amp;type=image</a></p>
