CKA Logging+Monitoring Lab Issue

Hello,

I’ve been attempting to complete the “Udemy Labs - Certified Kubernetes Administrator with Practice Tests” course and ran into an issue during the logging and monitoring section.

image003

I got as far as trying to use “kubectl top” to check CPU usage, no CPU metrics came through after waiting several minutes. I did some troubleshooting on the metrics-server deployment from the previous step and saw the following in the logs.

E0113 14:37:38.394847       1 errors.go:90] the server could not find the requested resource
E0113 14:37:39.100949       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:37:39.101082       1 errors.go:90] the server could not find the requested resource
E0113 14:37:39.105867       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:37:39.106597       1 errors.go:90] the server could not find the requested resource
E0113 14:37:51.607080       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:37:51.607222       1 errors.go:90] the server could not find the requested resource
E0113 14:37:51.607370       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:37:51.607447       1 errors.go:90] the server could not find the requested resource
E0113 14:38:08.402124       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:08.402272       1 errors.go:90] the server could not find the requested resource
E0113 14:38:09.113325       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:09.113419       1 errors.go:90] the server could not find the requested resource
E0113 14:38:09.119096       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:09.119193       1 errors.go:90] the server could not find the requested resource
E0113 14:38:38.408964       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:38.409108       1 errors.go:90] the server could not find the requested resource
E0113 14:38:39.127476       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:39.127587       1 errors.go:90] the server could not find the requested resource
E0113 14:38:39.132761       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:38:39.132914       1 errors.go:90] the server could not find the requested resource
E0113 14:39:08.420312       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:39:08.420432       1 errors.go:90] the server could not find the requested resource
E0113 14:39:09.140697       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:39:09.140855       1 errors.go:90] the server could not find the requested resource
E0113 14:39:09.147711       1 webhook.go:192] Failed to make webhook authorizer request: the server could not find the requested resource
E0113 14:39:09.147825       1 errors.go:90] the server could not find the requested resource

I believe there may be some issue with this course and its instructions as the deployment/config instructed doesn’t seem to be working. I’d appreciate it if somebody could take a look.

Hi @fferguson6,
Did you try with a new session?

Regards,

Hello,

Yes several times.

I was curious so I pulled the kodekloud repo and repeated the experiment in a KIND cluster locally and could reproduce the issue. It seemed to me that that version of metrics server is trying to use

authorization.k8s.io/v1beta1

However both my cluster and the KodeKloud lab cluster only had

authorization.k8s.io/v1

I would guess this is a version issue of some kind. When the metrics-server logs run through startup they get a 404 talking to that API for the subjectaccessreviewes call.

Thanks

Can you please share the repo URL?

Same URL used in the course: https://github.com/kodekloudhub/kubernetes-metrics-server

Just as an update on this. I recently re-tried and still got the same issue with that course section. I’ve had to skip it to move on

Hi @fferguson6,
Thanks for the update. I will re-check again with the team.

Regards,

Hello @fferguson6 ,

Did you use this repo git clone GitHub - kodekloudhub/kubernetes-metrics-server: Development environment deployment of metrics-server and this lab CKA Certification Course – Certified Kubernetes Administrator | KodeKloud ? Or you tried it in a different lab?

Hello

Yes those are the resources I used.

Thanks

Hello @fferguson6
Thanks for highlighting this to us.
We have reported that to the team and will try to resolve it on priority.
Appreciate your patience and apologies for the inconvenience caused.

Hi @fferguson6 ,
Can you please record a feedback video for this lab from the 1st question? I tried to replicate it but couldn’t able to do it.

I would appreciate.

Regards,

Hello,

I have used the feeback video facility and sent a recording listed as being from my email address. It references this issue number 251408

Thanks, I got it. @fferguson6 :+1:

Hi @fferguson6,
I have updated the lab. Please give it a try whenever you get a chance.

Regards,

Hello,

I’ve re-attempted the lab and this time it went much smoother with no errors, thank you for looking into this. I consider the issues resolved.

Regards

1 Like