How to authenticate with the admin user when using kubeadm?

7/1/2018

I created a cluster with kubeadm (well it's just a single node / master for now) however I seem to be having issues with authenticating as the admin user.

KUBECONFIG=/etc/kubernetes/kubelet.conf kubectl get sa
No resources found.
Error from server (Forbidden): serviceaccounts is forbidden: User "system:node:osboxes" cannot list serviceaccounts in the namespace "default": disabled by feature gate TokenRequest

I'm assuming that is the admin user? If not, where can I find it / authenticate with it?

-- Chris Stryczynski
kubeadm
kubernetes

1 Answer

7/1/2018

Found it: export KUBECONFIG=/etc/kubernetes/admin.conf

-- Chris Stryczynski
Source: StackOverflow