你好 请问下
[root@k8s-master1 yaml]# 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-11-03T15:24:55+08:00 INFO : shell-operator latest
2024-11-03T15:24:55+08:00 INFO : HTTP SERVER Listening on 0.0.0.0:9115
2024-11-03T15:24:55+08:00 INFO : Use temporary dir: /tmp/shell-operator
2024-11-03T15:24:55+08:00 INFO : Initialize hooks manager …
2024-11-03T15:24:55+08:00 INFO : Search and load hooks …
2024-11-03T15:24:55+08:00 INFO : Load hook config from ‘/hooks/kubesphere/installRunner.py’
2024-11-03T15:24:56+08:00 INFO : Load hook config from ‘/hooks/kubesphere/schedule.sh’
2024-11-03T15:24:56+08:00 INFO : Initializing schedule manager …
2024-11-03T15:24:56+08:00 INFO : KUBE Init Kubernetes client
2024-11-03T15:24:56+08:00 INFO : KUBE-INIT Kubernetes client is configured successfully
2024-11-03T15:24:56+08:00 INFO : MAIN: run main loop
2024-11-03T15:24:56+08:00 INFO : MAIN: add onStartup tasks
2024-11-03T15:24:56+08:00 INFO : QUEUE add all HookRun@OnStartup
2024-11-03T15:24:56+08:00 INFO : MSTOR Create new metric shell_operator_live_ticks
2024-11-03T15:24:56+08:00 INFO : Running schedule manager …
2024-11-03T15:24:56+08:00 INFO : MSTOR Create new metric shell_operator_tasks_queue_length
2024-11-03T15:24:56+08:00 INFO : GVR for kind ‘ClusterConfiguration’ is installer.kubesphere.io/v1alpha1, Resource=clusterconfigurations
2024-11-03T15:24:56+08:00 INFO : EVENT Kube event ‘e842cfa3-1030-4643-981e-b24c50b2711f’
2024-11-03T15:24:56+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:24:59+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:24:59+08:00 INFO : Running hook ‘kubesphere/installRunner.py’ binding ‘KUBE_EVENTS’ …
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : Generating images list] ***************************************
skipping: [localhost]
TASK [download : Synchronizing images] *****************************************
TASK [kubesphere-defaults : KubeSphere | Setting images’ namespace override] ***
skipping: [localhost]
TASK [kubesphere-defaults : KubeSphere | Configuring defaults] *****************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [preinstall : KubeSphere | Stopping if Kubernetes version is nonsupport] ***
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preinstall : KubeSphere | Checking StorageClass] *************************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if StorageClass was not found] ********
skipping: [localhost]
TASK [preinstall : KubeSphere | Checking default StorageClass] *****************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if default StorageClass was not found] ***
fatal: [localhost]: FAILED! => {
"assertion": "\\"(default)\\" in default_storage_class_check.stdout",
"changed": false,
"evaluated_to": false,
"msg": "Default StorageClass was not found !"
}
PLAY RECAP *********************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
2024-11-03T15:27:41+08:00 INFO : EVENT Kube event ‘e842cfa3-1030-4643-981e-b24c50b2711f’
2024-11-03T15:27:41+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:27:44+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:27:44+08:00 INFO : Running hook ‘kubesphere/installRunner.py’ binding ‘KUBE_EVENTS’ …
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : Generating images list] ***************************************
skipping: [localhost]
TASK [download : Synchronizing images] *****************************************
TASK [kubesphere-defaults : KubeSphere | Setting images’ namespace override] ***
skipping: [localhost]
TASK [kubesphere-defaults : KubeSphere | Configuring defaults] *****************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [preinstall : KubeSphere | Stopping if Kubernetes version is nonsupport] ***
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preinstall : KubeSphere | Checking StorageClass] *************************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if StorageClass was not found] ********
skipping: [localhost]
TASK [preinstall : KubeSphere | Checking default StorageClass] *****************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if default StorageClass was not found] ***
fatal: [localhost]: FAILED! => {
"assertion": "\\"(default)\\" in default_storage_class_check.stdout",
"changed": false,
"evaluated_to": false,
"msg": "Default StorageClass was not found !"
}
PLAY RECAP *********************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
2024-11-03T15:43:27+08:00 INFO : EVENT Kube event ‘e842cfa3-1030-4643-981e-b24c50b2711f’
2024-11-03T15:43:27+08:00 INFO : QUEUE add TASK_HOOK_RUN@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:43:27+08:00 INFO : TASK_RUN HookRun@KUBE_EVENTS kubesphere/installRunner.py
2024-11-03T15:43:27+08:00 INFO : Running hook ‘kubesphere/installRunner.py’ binding ‘KUBE_EVENTS’ …
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : Generating images list] ***************************************
skipping: [localhost]
TASK [download : Synchronizing images] *****************************************
TASK [kubesphere-defaults : KubeSphere | Setting images’ namespace override] ***
skipping: [localhost]
TASK [kubesphere-defaults : KubeSphere | Configuring defaults] *****************
ok: [localhost] => {
"msg": "Check roles/kubesphere-defaults/defaults/main.yml"
}
TASK [preinstall : KubeSphere | Stopping if Kubernetes version is nonsupport] ***
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preinstall : KubeSphere | Checking StorageClass] *************************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if StorageClass was not found] ********
skipping: [localhost]
TASK [preinstall : KubeSphere | Checking default StorageClass] *****************
changed: [localhost]
TASK [preinstall : KubeSphere | Stopping if default StorageClass was not found] ***
fatal: [localhost]: FAILED! => {
"assertion": "\\"(default)\\" in default_storage_class_check.stdout",
"changed": false,
"evaluated_to": false,
"msg": "Default StorageClass was not found !"
}
PLAY RECAP *********************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
这怎末解决下呢 看着时缺 stroageclasss ,官方文档 没说 要配置 ,我看yaml 里面的存储 也 不需要配置 呢