安装的时候日志卡住不动了:
[root@master k8s]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l ‘app in (ks-install, ks-installer)’ -o jsonpath=‘{.items[0].metadata.name}’) -f
2024-10-24T23:19:21+08:00 INFO : shell-operator latest
2024-10-24T23:19:21+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2024-10-24T23:19:21+08:00 INFO : Use temporary dir: /tmp/shell-operator
2024-10-24T23:19:21+08:00 INFO : Initialize hooks manager …
2024-10-24T23:19:21+08:00 INFO : Search and load hooks …
2024-10-24T23:19:21+08:00 INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
2024-10-24T23:19:22+08:00 INFO : Load hook config from ‘/hooks/kubesphere/schedule.sh’
2024-10-24T23:19:22+08:00 INFO : Initializing schedule manager …
2024-10-24T23:19:22+08:00 INFO : KUBE Init Kubernetes client
2024-10-24T23:19:22+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2024-10-24T23:19:22+08:00 INFO : MAIN: run main loop
2024-10-24T23:19:22+08:00 INFO : MAIN: add onStartup tasks
2024-10-24T23:19:22+08:00 INFO : Running schedule manager …
2024-10-24T23:19:22+08:00 INFO : QUEUE add all HookRun@OnStartup
2024-10-24T23:19:22+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2024-10-24T23:19:22+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2024-10-24T23:19:22+08:00 INFO : GVR for kind ‘ClusterConfiguration’ is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Docker version 26.1.4, build 5650f9b
crictl version v1.26.0
nerdctl version 1.0.0
KubeSphere版本信息
ks-installer v3.4.1
ks-installer image 版本是 kubesphere/ks-installer:v3.4.1-patch.0
问题是什么
下面卡住了:
[root@master k8s]# kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l ‘app in (ks-install, ks-installer)’ -o jsonpath=‘{.items[0].metadata.name}’) -f
2024-10-24T23:19:21+08:00 INFO : shell-operator latest
2024-10-24T23:19:21+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2024-10-24T23:19:21+08:00 INFO : Use temporary dir: /tmp/shell-operator
2024-10-24T23:19:21+08:00 INFO : Initialize hooks manager …
2024-10-24T23:19:21+08:00 INFO : Search and load hooks …
2024-10-24T23:19:21+08:00 INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
2024-10-24T23:19:22+08:00 INFO : Load hook config from ‘/hooks/kubesphere/schedule.sh’
2024-10-24T23:19:22+08:00 INFO : Initializing schedule manager …
2024-10-24T23:19:22+08:00 INFO : KUBE Init Kubernetes client
2024-10-24T23:19:22+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2024-10-24T23:19:22+08:00 INFO : MAIN: run main loop
2024-10-24T23:19:22+08:00 INFO : MAIN: add onStartup tasks
2024-10-24T23:19:22+08:00 INFO : Running schedule manager …
2024-10-24T23:19:22+08:00 INFO : QUEUE add all HookRun@OnStartup
2024-10-24T23:19:22+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2024-10-24T23:19:22+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2024-10-24T23:19:22+08:00 INFO : GVR for kind ‘ClusterConfiguration’ is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations