rancher问题积累
1、卸载rancher出现问题
报错信息:error: unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
排查问题
[root@localhost ~]$ kubectl get apiservice NAME SERVICE AVAILABLE AGE v1beta1.custom.metrics.k8s.io cattle-monitoring-system/rancher-monitoring-prometheus-adapter False (ServiceNotFound) 24h
解决办法
[root@localhost ~]$ kubectl delete apiservice v1beta1.custom.metrics.k8s.io --force warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely. apiservice.apiregistration.k8s.io "v1beta1.custom.metrics.k8s.io" force deleted
[root@localhost ~]$ kubectl get mutatingwebhookconfigurations NAME WEBHOOKS AGE mutating-webhook-configuration 7 28h rancher-monitoring-admission 1 27h rancher.cattle.io 2 28h [root@localhost ~]$ kubectl get validatingwebhookconfigurations NAME WEBHOOKS AGE rancher-monitoring-admission 1 27h rancher.cattle.io 2 28h validating-webhook-configuration 7 28h
解决办法
删除准入控制器
[root@localhost ~]$ kubectl delete mutatingwebhookconfigurations mutating-webhook-configuration mutatingwebhookconfiguration.admissionregistration.k8s.io "mutating-webhook-configuration" deleted [root@localhost ~]$ kubectl delete mutatingwebhookconfigurations rancher-monitoring-admission mutatingwebhookconfiguration.admissionregistration.k8s.io "rancher-monitoring-admission" deleted [root@localhost ~]$ kubectl delete mutatingwebhookconfigurations rancher.cattle.io mutatingwebhookconfiguration.admissionregistration.k8s.io "rancher.cattle.io" deleted [root@localhost ~]$ kubectl delete validatingwebhookconfigurations validating-webhook-configuration validatingwebhookconfiguration.admissionregistration.k8s.io "validating-webhook-configuration" deleted [root@localhost ~]$ kubectl delete validatingwebhookconfigurations rancher-monitoring-admission validatingwebhookconfiguration.admissionregistration.k8s.io "rancher-monitoring-admission" deleted [root@localhost ~]$ kubectl delete validatingwebhookconfigurations rancher.cattle.io validatingwebhookconfiguration.admissionregistration.k8s.io "rancher.cattle.io" deleted
分类:
K8s
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具