创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
操作系统信息
虚拟机,Centos7.9 3C/4G
Kubernetes版本信息
v19.3.12,3个master,2个node
容器运行时
使用 docker 19.3.12
KubeSphere版本信息
KubeSpherev3.2.1。已有K8s最小化安装
默认存储:NFS已配置

问题是什么:
直接按照官网安装的,参考安装地址如下: https://kubesphere.io/zh/docs/quick-start/minimal-kubesphere-on-k8s/
使用此命令查看pod安装日志信息:kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath=‘{.items[0].metadata.name}’) -f, 得到截图信息如下:

完整的错误日志信息(因字体过多,省略了前半部分),如下所示:
TASK [ks-core/ks-core : KubeSphere | Convert ks-core to helm mananged] *********
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘serviceaccounts’, ‘resource’: ‘kubesphere-cluster-admin’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘serviceaccounts’, ‘resource’: ‘kubesphere-router-serviceaccount’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘role’, ‘resource’: ‘system:kubesphere-router-role’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘rolebinding’, ‘resource’: ‘nginx-ingress-role-nisa-binding’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘deployment’, ‘resource’: ‘default-http-backend’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-controls-system’, ‘kind’: ‘service’, ‘resource’: ‘default-http-backend’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘secrets’, ‘resource’: ‘ks-controller-manager-webhook-cert’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘serviceaccounts’, ‘resource’: ‘kubesphere’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘configmaps’, ‘resource’: ‘ks-console-config’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘configmaps’, ‘resource’: ‘ks-router-config’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘configmaps’, ‘resource’: ‘sample-bookinfo’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘clusterroles’, ‘resource’: ‘system:kubesphere-router-clusterrole’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘clusterrolebindings’, ‘resource’: ‘system:nginx-ingress-clusterrole-nisa-binding’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘clusterrolebindings’, ‘resource’: ‘system:kubesphere-cluster-admin’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘clusterrolebindings’, ‘resource’: ‘kubesphere’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘services’, ‘resource’: ‘ks-apiserver’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘services’, ‘resource’: ‘ks-console’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘services’, ‘resource’: ‘ks-controller-manager’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘deployments’, ‘resource’: ‘ks-apiserver’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘deployments’, ‘resource’: ‘ks-console’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘deployments’, ‘resource’: ‘ks-controller-manager’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘validatingwebhookconfigurations’, ‘resource’: ‘users.iam.kubesphere.io’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘validatingwebhookconfigurations’, ‘resource’: ‘resourcesquotas.quota.kubesphere.io’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘validatingwebhookconfigurations’, ‘resource’: ‘network.kubesphere.io’, ‘release’: ‘ks-core’})
skipping: [localhost] => (item={‘ns’: ‘kubesphere-system’, ‘kind’: ‘users.iam.kubesphere.io’, ‘resource’: ‘admin’, ‘release’: ‘ks-core’})
TASK [ks-core/ks-core : KubeSphere | Patch admin user] *************************
skipping: [localhost]
TASK [ks-core/ks-core : KubeSphere | Getting ks-core helm charts] **************
changed: [localhost] => (item=ks-core)
TASK [ks-core/ks-core : KubeSphere | Creating manifests] ***********************
changed: [localhost] => (item={‘path’: ‘ks-core’, ‘file’: ‘custom-values-ks-core.yaml’})
TASK [ks-core/ks-core : KubeSphere | Upgrade CRDs] *****************************
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml”, “delta”: “0:00:13.004474”, “end”: “2022-01-12 23:35:54.529542”, “item”: “/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:35:41.525068”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“applications.app.k8s.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml\”: etcdserver: leader changed", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“applications.app.k8s.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/app_v1beta1_application.yaml\“: etcdserver: leader changed”], “stdout”: "", “stdout_lines”: []}
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplications.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmapplicationversions.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmcategories.yaml)
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml”, “delta”: “0:00:38.638805”, “end”: “2022-01-12 23:36:44.504603”, “item”: “/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:36:05.865798”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“helmreleases.application.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml\”: etcdserver: request timed out", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“helmreleases.application.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmreleases.yaml\“: etcdserver: request timed out”], “stdout”: "", “stdout_lines”: []}
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml”, “delta”: “0:00:10.405253”, “end”: “2022-01-12 23:36:55.191358”, “item”: “/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:36:44.786105”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“helmrepos.application.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml\”: etcdserver: request timed out", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“helmrepos.application.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/application.kubesphere.io_helmrepos.yaml\“: etcdserver: request timed out”], “stdout”: "", “stdout_lines”: []}
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml”, “delta”: “0:00:07.304252”, “end”: “2022-01-12 23:37:02.837342”, “item”: “/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:36:55.533090”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“clusters.cluster.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml\”: etcdserver: leader changed", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“clusters.cluster.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/cluster.kubesphere.io_clusters.yaml\“: etcdserver: leader changed”], “stdout”: "", “stdout_lines”: []}
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_gateways.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/gateway.kubesphere.io_nginxes.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedrolebindings.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedroles.yaml)
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml”, “delta”: “0:00:29.345932”, “end”: “2022-01-12 23:37:55.351667”, “item”: “/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:37:26.005735”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“federatedusers.iam.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml\”: etcdserver: request timed out", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“federatedusers.iam.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_federatedusers.yaml\“: etcdserver: request timed out”], “stdout”: "", “stdout_lines”: []}
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalrolebindings.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_globalroles.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groupbindings.yaml)
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml”, “delta”: “0:00:13.159015”, “end”: “2022-01-12 23:38:25.266468”, “item”: “/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:38:12.107453”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“groups.iam.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml\”: etcdserver: request timed out", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“groups.iam.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_groups.yaml\“: etcdserver: request timed out”], “stdout”: "", “stdout_lines”: []}
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_loginrecords.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_rolebases.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_users.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspacerolebindings.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/iam.kubesphere.io_workspaceroles.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamblocks.yaml)
failed: [localhost] (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml) => {“ansible_loop_var”: “item”, “changed”: true, “cmd”: “/usr/local/bin/kubectl apply -f /kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml”, “delta”: “0:00:09.313992”, “end”: “2022-01-12 23:38:44.097717”, “item”: “/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-01-12 23:38:34.783725”, “stderr”: "Error from server: error when retrieving current configuration of:\nResource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”\nName: \“ipamhandles.network.kubesphere.io\”, Namespace: \“\”\nfrom server for: \“/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml\”: etcdserver: leader changed", “stderr_lines”: [“Error from server: error when retrieving current configuration of:”, "Resource: \“apiextensions.k8s.io/v1, Resource=customresourcedefinitions\”, GroupVersionKind: \“apiextensions.k8s.io/v1, Kind=CustomResourceDefinition\”", "Name: \“ipamhandles.network.kubesphere.io\”, Namespace: \“\”", “from server for: \”/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ipamhandles.yaml\“: etcdserver: leader changed”], “stdout”: "", “stdout_lines”: []}
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_ippools.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/network.kubesphere.io_namespacenetworkpolicies.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/quota.kubesphere.io_resourcequotas.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_servicepolicies.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/servicemesh.kubesphere.io_strategies.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspaces.yaml)
changed: [localhost] => (item=/kubesphere/kubesphere/ks-core/crds/tenant.kubesphere.io_workspacetemplates.yaml)
PLAY RECAP *********************************************************************
localhost : ok=17 changed=11 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0
获取kubesphere命名空间下所有pod,截图如下:

获取kubesphere命名空间下的服务信息,截图如下:
