执行kubectl api-resources 报错error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request

2023-03-09,,

1、故障现象:error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request

2、分析原因:apiservces资源 有一个资源状态可用性异常

执行 kubectl get apiservices 查看api 资源状态

3、解决方案:

直接删除 False 状态的api 资源

kubectl delete apiservices/v1beta1.metrics.k8s.io

执行kubectl api-resources 报错error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request的相关教程结束。

《执行kubectl api-resources 报错error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request.doc》

下载本文的Word格式文档,以方便收藏与打印。