Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:
Cloud being used: bare-metal
Installation method: Microk8s
Host OS: Ubuntu 20
CNI and version:
CRI and version:
I am trying to integrate kubectl with keycloak OIDC and i have create a user let’s say John in keycloak and on k8s side i have set all necessay setting in kube api server so bassically on this file “/var/snap/microk8s/current/args/kube-apiserver” and kubectl config related setting on this file “/var/snap/microk8s/current/credentials/client.config” . also i created one simple clusterrolebinding file giving pod reader access to that user “john” however i noticed that all token related info is working but when kubectl i do kubectl get pod it says > [{
“kind”: “Status”,
“apiVersion”: “v1”,
“metadata”: {},
“status”: “Failure”,
“message”: “Unauthorized”,
“reason”: “Unauthorized”,
“code”: 401
}]
no matter whatever command i make with kubectl. Any help would be great. Is kubeapi server not able to get my token or it doesnt like my token. I hope authentication is happening and authorization is what throwing error.