k8s安装kubesphere错误:unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the s

在安装kubesphere过程中遇到错误,提示无法获取完整的服务器API列表,特别是metrics.k8s.io/v1beta1 API。尝试通过检查apiservice并删除问题API来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@k8s-master ~]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
2021-03-01T13:51:31Z INFO     : shell-operator v1.0.0-beta.5
2021-03-01T13:51:31Z INFO     : HTTP SERVER Listening on 0.0.0.0:9115
2021-03-01T13:51:31Z INFO     : Use temporary dir: /tmp/shell-operator
2021-03-01T13:51:31Z INFO     : Initialize hooks manager ...
2021-03-01T13:51:31Z INFO     : Search and load hooks ...
2021-03-01T13:51:31Z INFO     : Load hook config from '/hooks/kubesphere/installRunner.py'
2021-03-01T13:51:31Z INFO     : Initializing schedule manager ...
2021-03-01T13:51:31Z INFO     : KUBE Init Kubernetes client
2021-03-01T13:51:31Z INFO     : KUBE-INIT Kubernetes client is configured successfully
2021-03-01T13:51:31Z INFO     : MAIN: run main loop
2021-03-01T13:51:31Z INFO     : MAIN: add onStartup tasks
2021-03-01T13:51:31Z INFO     : Running schedule manager ...
2021-03-01T13:51:31Z INFO     : MSTOR Create new metric shell_operator_live_ticks
2021-03-01T13:51:31Z INFO     : MSTOR Create new metric shell_operator_tasks_queue_length
2021-03-01T13:51:31Z INFO     : QUEUE add all HookRun@OnStartup
2021-03-01T13:51:31Z 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
2021-03-01T13:51:31Z 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
2021-03-01T13:51:34Z INFO     : TASK_RUN Exit: program halts.
[root@k8s-master ~]# kubectl get apiservice
NAME                                        SERVICE                      AVAILABLE                      AGE
v1.                                         Local                        True                           32h
v1.admissionregistration.k8s.io             Local                        True   &n

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值