# Rke2 authorization

**URL:** <https://forums.suse.com/t/rke2-authorization/21485>\
**Category:** General\
**Created:** [October 20, 2021, 2:55pm UTC](https://forums.suse.com/t/rke2-authorization/21485 "2021-10-20T14:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivekanandhan](https://avatars.discourse-cdn.com/v4/letter/v/b9e5f3/32.png) [@Vivekanandhan](https://forums.suse.com/u/Vivekanandhan)\
**Post date:** [October 20, 2021, 2:55pm UTC](https://forums.suse.com/t/rke2-authorization/21485/1 "2021-10-20T14:55:09Z")

</div>

I have created key,csr and the crt with server-ca.crt & server-ca.key.  
Configured kubeconfig for new user authentication and authorisation.  
Created role and rolebindings.

But I get below error,  
kubectl --kubeconfig=johnconfig get pods  
error: You must be logged in to the server (Unauthorized)

Any suggestions
