使用的是centos7.7系统
[root@localhost scripts]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath={.items[0].metadata.name}) -f
2020-04-10T03:13:00Z INFO : shell-operator v1.0.0-beta.5
2020-04-10T03:13:00Z INFO : HTTP SERVER Listening on 0.0.0.0:9115
2020-04-10T03:13:00Z INFO : Use temporary dir: /tmp/shell-operator
2020-04-10T03:13:00Z INFO : Initialize hooks manager ...
2020-04-10T03:13:00Z INFO : Search and load hooks ...
2020-04-10T03:13:00Z INFO : Load hook config from '/hooks/kubesphere/installRunner.py'
2020-04-10T03:13:01Z INFO : Initializing schedule manager ...
2020-04-10T03:13:01Z INFO : KUBE Init Kubernetes client
2020-04-10T03:13:01Z INFO : KUBE-INIT Kubernetes client is configured successfully
2020-04-10T03:13:01Z INFO : MAIN: run main loop
2020-04-10T03:13:01Z INFO : MAIN: add onStartup tasks
2020-04-10T03:13:01Z INFO : Running schedule manager ...
2020-04-10T03:13:01Z INFO : MSTOR Create new metric shell_operator_live_ticks
2020-04-10T03:13:01Z INFO : QUEUE add all HookRun@OnStartup
2020-04-10T03:13:01Z INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2020-04-10T03:13:02Z ERROR : error getting GVR for kind 'ConfigMap': Get https://10.233.0.1:443/api?timeout=32s: dial tcp 10.233.0.1:443: connect: no route to host
2020-04-10T03:13:02Z ERROR : Enable kube events for hooks error: Get https://10.233.0.1:443/api?timeout=32s: dial tcp 10.233.0.1:443: connect: no route to host
2020-04-10T03:13:04Z INFO : TASK_RUN Exit: program halts.
最后已经进行到
The ks-installer is running
Please wait for the installation to complete .....
NOTE:
Verify the installation logs and result:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath={.items[0].metadata.name}) -f
这一步了,没有显示安装成功,验证了显示no route to host