安装方式:
在 Kubernetes 安装 KubeSphere
环境:
1.k8s版本:
[root@sac-k8snode-bjtx-24 ~]# kubectl version | grep Server
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.8", GitCommit:"35dc4cdc26cfcb6614059c4c6e836e5f0dc61dee", GitTreeState:"clean", BuildDate:"2020-06-26T03:36:03Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
2.helm版本:
[root@sac-k8snode-bjtx-24 ~]# helm version
Client: &version.Version{SemVer:"v2.16.7", GitCommit:"5f2584fd3d35552c4af26036f0c464191287986b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.6", GitCommit:"dd2e5695da88625b190e6b22e9542550ab503a47", GitTreeState:"clean"}
3.kubesphere安装方式:完整安装
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/kubesphere-complete-setup.yaml
报错信息:
[root@sac-k8smaster-bjtx-46 ~]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
2020-07-10T07:44:39Z INFO : shell-operator v1.0.0-beta.5
2020-07-10T07:44:39Z INFO : Use temporary dir: /tmp/shell-operator
2020-07-10T07:44:39Z INFO : Initialize hooks manager ...
2020-07-10T07:44:39Z INFO : Search and load hooks ...
2020-07-10T07:44:39Z INFO : HTTP SERVER Listening on 0.0.0.0:9115
2020-07-10T07:44:39Z INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2020-07-10T07:44:40Z INFO : Initializing schedule manager ...
2020-07-10T07:44:40Z INFO : KUBE Init Kubernetes client
2020-07-10T07:44:40Z INFO : KUBE-INIT Kubernetes client is configured successfully
2020-07-10T07:44:40Z INFO : MAIN: run main loop
2020-07-10T07:44:40Z INFO : MAIN: add onStartup tasks
2020-07-10T07:44:40Z INFO : QUEUE add all HookRun@OnStartup
2020-07-10T07:44:40Z INFO : Running schedule manager ...
2020-07-10T07:44:40Z INFO : MSTOR Create new metric shell_operator_live_ticks
2020-07-10T07:44:40Z INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-07-10T07:44:40Z 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-07-10T07:44:40Z 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-07-10T07:44:43Z INFO : TASK_RUN Exit: program halts.
感谢帮忙排查