<p>Hi i have a server configured with kubernetes (without using minikube), i can execute kubectl commands without problems, like <code>kubectl get all</code>, <code>kubectl delete pod</code>, <code>kubectl delete apply</code> ...</p>
<p>I would want to know how to allow another user from my server to execute kubectl commands, because if i change to another user and i try to execute <code>kubectl get all -s localhost:8443</code> i get:</p>
<p><code>Error from server (BadRequest): the server rejected our request for an unknown reason</code></p>
<p>I have read the <a href="https://kubernetes.io/docs/reference/access-authn-authz/authorization/" rel="nofollow noreferrer">Kubernetes Authorization</a> Documentation, but im not sure if it is what im looking for.</p>

<p>This is happening because there is no <code>kubeconfig</code> file for the user.You need to have the same kubeconfig file for the other user either in the default location <code>$HOME/.kube/config</code> or in any location pointed by <code>KUBECONFIG</code> environment variable.</p>
<p>You can copy the existing <code>kubeconfig</code> file for the working user to the above location for the non working user.</p>
