出现这个问题的原因我还不清楚
操作是在ks-installer的cc中添加了一个错误的配置。之后发现ks-installer和ks-apiserver的pod全部crash。
查看报错信息如下:
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
kubectl get apiservice
可以看到metrics.k8s.io确实有问题
删了
kubectl delete apiservice v1beta1.metrics.k8s.io
删除之后,重启pod就好了
本文使用 markdown.com.cn 排版