https://rancher.com/ logo
Title
l

limited-motherboard-41807

09/02/2022, 3:36 PM
Hello folks, I'm setting up OIDC authentication on a RKE2 cluster but something is not working, thus I'd like to check the kube-apiserver logs but I cannot find them. I expected them to be in
/var/lib/rancher/rke2/server/logs
but the directory is empty. Do you know where I should look for?
c

creamy-pencil-82913

09/02/2022, 3:38 PM
The control-plane components are all run as static pods… so you can use
kubectl logs
or look in
/var/log/pods
, same as you would for any other pod log
🙌 1
l

limited-motherboard-41807

09/02/2022, 3:40 PM
Ah right! Thanks
Didn't know that. I guess I should read more about RKE2 🙂