hello云胜

技术与生活

0%

出现这个问题的原因我还不清楚

操作是在ks-installer的cc中添加了一个错误的配置。之后发现ks-installer和ks-apiserver的pod全部crash。

查看报错信息如下:

1
2
3
4
2023-12-05T16:43:00+08:00 INFO     : MSTOR Create new metric shell_operator_live_ticks
2023-12-05T16:43:00+08:00 ERROR : error getting GVR for kind 'ClusterConfiguration': unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
2023-12-05T16:43:00+08:00 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
2023-12-05T16:43:03+08:00 INFO : TASK_RUN Exit: program halts.

查看apiservice

1
kubectl get apiservice

image-20231205170451670

可以看到metrics.k8s.io确实有问题

删了

1
kubectl delete apiservice v1beta1.metrics.k8s.io

删除之后,重启pod就好了