在kubernetes1.17.3基础上安装
[root@sac-k8smaster-bjtx-46 ~]# kubectl get pod -n kubesphere-system
NAME READY STATUS RESTARTS AGE
ks-installer-75b8d89dff-7h56g 0/1 CrashLoopBackOff 12 44m
[root@sac-k8smaster-bjtx-46 ~]# kubectl logs ks-installer-75b8d89dff-7h56g -n kubesphere-system
2020-07-13T06:32:29Z INFO : shell-operator v1.0.0-beta.5
2020-07-13T06:32:29Z INFO : HTTP SERVER Listening on 0.0.0.0:9115
2020-07-13T06:32:29Z INFO : Use temporary dir: /tmp/shell-operator
2020-07-13T06:32:29Z INFO : Initialize hooks manager ...
2020-07-13T06:32:29Z INFO : Search and load hooks ...
2020-07-13T06:32:29Z INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2020-07-13T06:32:29Z INFO : Initializing schedule manager ...
2020-07-13T06:32:29Z INFO : KUBE Init Kubernetes client
2020-07-13T06:32:29Z INFO : KUBE-INIT Kubernetes client is configured successfully
2020-07-13T06:32:29Z INFO : MAIN: run main loop
2020-07-13T06:32:29Z INFO : MAIN: add onStartup tasks
2020-07-13T06:32:29Z INFO : QUEUE add all HookRun@OnStartup
2020-07-13T06:32:29Z INFO : Running schedule manager ...
2020-07-13T06:32:29Z INFO : MSTOR Create new metric shell_operator_live_ticks
2020-07-13T06:32:29Z INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-07-13T06:32:39Z 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-13T06:32:39Z 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-13T06:32:41Z INFO : TASK_RUN Exit: program halts.
[root@sac-k8smaster-bjtx-46 ~]#
[root@sac-k8smaster-bjtx-46 ~]# kubectl logs metrics-server-66444bf745-9htbr -n kube-system
I0713 05:48:53.444926 1 serving.go:273] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
[restful] 2020/07/13 05:48:54 log.go:33: [restful/swagger] listing is available at https://:443/swaggerapi
[restful] 2020/07/13 05:48:54 log.go:33: [restful/swagger] https://:443/swaggerui/ is mapped to folder /swagger-ui/
I0713 05:48:54.037363 1 serve.go:96] Serving securely on [::]:443
E0713 05:50:54.046366 1 manager.go:102] unable to fully collect metrics: unable to fully scrape metrics from source kubelet_summary:sac-k8snode-bjtx-32: unable to get a valid timestamp for metric point for container "installer" in pod kubesphere-system/ks-installer-75b8d89dff-7h56g on node "172.26.8.32", discarding data: no non-zero timestamp on either CPU or memory
E0713 05:52:54.042383 1 manager.go:102] unable to fully collect metrics: unable to fully scrape metrics from source kubelet_summary:sac-k8snode-bjtx-32: unable to get a valid timestamp for metric point for container "installer" in pod kubesphere-system/ks-installer-75b8d89dff-7h56g on node "172.26.8.32", discarding data: no non-zero timestamp on either CPU or memory
E0713 05:55:54.049743 1 manager.go:102] unable to fully collect metrics: unable to fully scrape metrics from source kubelet_summary:sac-k8snode-bjtx-32: unable to get a valid timestamp for metric point for container "installer" in pod kubesphere-system/ks-installer-75b8d89dff-7h56g on node "172.26.8.32", discarding data: no non-zero timestamp on either CPU or memory