https://rancher.com/ logo
Title
a

able-zebra-19664

05/16/2023, 9:26 AM
hello!! 🙂 can someone please give me a rke2 metrics-server yaml?
c

creamy-pencil-82913

05/16/2023, 4:47 PM
What are you looking for?
a

able-zebra-19664

05/17/2023, 5:35 AM
sooo i had this error
"couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request".
and i decided to delete the deployment of rke2-metrics-server waiting for a new one to be automatically created. this didn t happened. meanwhile i found the k8s metrics-server deployment yaml, i applied it and now my metrics server has another error
missing endpoints
and i can t roll back the deployment i apllied. sooo i want to delete all and reapply the default rke2-metrics-server. 😄
c

creamy-pencil-82913

05/17/2023, 7:48 AM
Just restart the rke2-server service on one of your servers, it'll reapply everything
You'll probably need to clean up whatever random manifest you applied so that it doesn't conflict though
a

able-zebra-19664

05/17/2023, 10:10 AM
well i also tried this, i restarted rke2-server service and i deleted the manifest and the deployment i made. after, i restarted the rke2-server service several times. there is no new rke2-metrics-server showing even after a couple of hours.