root@control:~# kubectl get --all-namespaces services The connection to the server localhost:8080 was refused - did you specify the right host or port?
Environment variable KUBECONFIG
must be set explicit
$ sudo cp /etc/kubernetes/admin.conf $HOME/
$ sudo chown $(id -u):$(id -g) $HOME/admin.conf
$ export KUBECONFIG=$HOME/admin.conf
$ kubectl get nodes --selector='node-role.kubernetes.io/master'
$ kubectl get nodes --selector='!node-role.kubernetes.io/master'