概述
[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 32h
v1.apiextensions.k8s.io Local True 32h
v1.apps Local True 32h
v1.authentication.k8s.io Local True 32h
v1.authorization.k8s.io Local True 32h
v1.autoscaling Local True 32h
v1.batch Local True 32h
v1.coordination.k8s.io Local True 32h
v1.monitoring.coreos.com Local True 8m54s
v1.networking.k8s.io Local True 32h
v1.rbac.authorization.k8s.io Local True 32h
v1.scheduling.k8s.io Local True 32h
v1.storage.k8s.io Local True 32h
v1.volumesnapshot.external-storage.k8s.io Local True 8m54s
v1alpha1.devops.kubesphere.io Local True 8m54s
v1alpha1.logging.kubesphere.io Local True 8m54s
v1alpha1.openebs.io Local True 8m54s
v1alpha1.tenant.kubesphere.io Local True 8m54s
v1alpha2.servicemesh.kubesphere.io Local True 8m54s
v1alpha3.networking.istio.io Local True 8m54s
v1beta1.admissionregistration.k8s.io Local True 32h
v1beta1.apiextensions.k8s.io Local True 32h
v1beta1.app.k8s.io Local True 8m54s
v1beta1.authentication.k8s.io Local True 32h
v1beta1.authorization.k8s.io Local True 32h
v1beta1.batch Local True 32h
v1beta1.certificates.k8s.io Local True 32h
v1beta1.coordination.k8s.io Local True 32h
v1beta1.discovery.k8s.io Local True 32h
v1beta1.events.k8s.io Local True 32h
v1beta1.extensions Local True 32h
v1beta1.metrics.k8s.io kube-system/metrics-server False (FailedDiscoveryCheck) 27h
v1beta1.networking.k8s.io Local True 32h
v1beta1.node.k8s.io Local True 32h
v1beta1.policy Local True 32h
v1beta1.rbac.authorization.k8s.io Local True 32h
v1beta1.scheduling.k8s.io Local True 32h
v1beta1.storage.k8s.io Local True 32h
v2beta1.autoscaling Local True 32h
v2beta2.autoscaling Local True 32h
[root@k8s-master ~]# kubectl delete apiservice v1beta1.metrics.k8s.io
apiservice.apiregistration.k8s.io "v1beta1.metrics.k8s.io" deleted
[root@k8s-master ~]#
最后
以上就是斯文魔镜为你收集整理的k8s安装kubesphere错误:unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the s的全部内容,希望文章能够帮你解决k8s安装kubesphere错误:unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the s所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复