2020-04-05T17:16:23Z INFO : Search and load hooks …
2020-04-05T17:16:23Z INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
2020-04-05T17:16:23Z INFO : Initializing schedule manager …
2020-04-05T17:16:23Z INFO : KUBE Init Kubernetes client
2020-04-05T17:16:23Z INFO : KUBE-INIT Kubernetes client is configured successfully
2020-04-05T17:16:23Z INFO : MAIN: run main loop
2020-04-05T17:16:23Z INFO : MAIN: add onStartup tasks
2020-04-05T17:16:23Z INFO : Running schedule manager …
2020-04-05T17:16:23Z INFO : QUEUE add all HookRun@OnStartup
2020-04-05T17:16:23Z INFO : MSTOR Create new metric shell_operator_live_ticks
2020-04-05T17:16:23Z INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-04-05T17:16:24Z ERROR : error getting GVR for kind ‘ConfigMap’: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
2020-04-05T17:16:24Z ERROR : Enable kube events for hooks error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
2020-04-05T17:16:26Z INFO : TASK_RUN Exit: program halts.

  • error getting GVR for kind ‘ConfigMap’: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
    这个错误是集群里的metrics-server不正常造成的,可以把集群里的metrics-server删掉,如果metrics-server是helm安装的用helm del --purge xxx删除

遇到一样的问题。。。
请问怎么干净的重新安装

error getting GVR for kind ‘ConfigMap’: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
这个错误是集群里的metrics-server不正常造成的,可以把集群里的metrics-server删掉,如果metrics-server是helm安装的用helm del --purge xxx删除

13 天 后
9 天 后
2 年 后

解决方法:

1、查找到出问题的apiservice

kubectl get apiservice

可以看到其中有出现false状态的apiservice,删除出问题的apiservice故障即可解决。

2、删除出问题的apiservice

kubectl delete apiservce <service-name>