Connecting Clients

First, install kubectl locally, in a path your session understands, e.g. /usr/local/bin.

Next, make sure dcos is adequately configured to access your DC/OS cluster, and run

$ dcos kubernetes kubeconfig

You should now be able to validate your cluster by running:

kubectl get nodes

The output should look like:

NAME                                   STATUS    AGE        VERSION
kube-node-0-kubelet.kubernetes.mesos   Ready     10m        v1.9.1
kube-node-1-kubelet.kubernetes.mesos   Ready     10m        v1.9.1
kube-node-2-kubelet.kubernetes.mesos   Ready     10m        v1.9.1

For running more advanced commands such as kubectl proxy, an SSH tunnel is still required. To create the tunnel, run

$ ssh -4 -i <YOUR PRIVATE KEY> -N -L \

You must then re-configure kubectl by running

$ kubectl config set-cluster dcos-k8s --server=http://localhost:9000
$ kubectl config set-context dcos-k8s --cluster=dcos-k8s --namespace=default
$ kubectl config use-context dcos-k8s

If kubectl is properly configured and the tunnel established successfully, you should now be able to run kubectl proxy as well as any other command.