创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
Centos
问题是什么
官方文档:
如果您已经拥有可用的 Kubernetes 集群,执行以下命令通过 helm
安装 KubeSphere 企业版的核心组件 KubeSphere Core。
$$
chart=oci://hub.kubesphere.com.cn/kse/ks-core
version=1.0.8
helm upgrade –install -n kubesphere-system –create-namespace ks-core $chart \
–debug \
–wait \
–set cloud.enabled=true \
–version $version
$$
执行结果:
history.go:56: [debug] getting history for release ks-core
DEBU[0000] resolving host=hub.kubesphere.com.cn
DEBU[0000] do request host=hub.kubesphere.com.cn request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.14.3 request.method=HEAD url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/1.0.8"
DEBU[0000] fetch response received host=hub.kubesphere.com.cn response.header.connection=keep-alive response.header.content-length=152 response.header.content-type="application/json; charset=utf-8" response.header.date="Tue, 03 Sep 2024 03:48:31 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.server=nginx response.header.set-cookie="sid=b1e980ede0e237b46c963fb70b028ef6; Path=/; HttpOnly" response.header.www-authenticate="Bearer realm=\"https://hub.kubesphere.com.cn/service/token\",service=\"harbor-registry\",scope=\"repository:kse/ks-core:pull\"" response.header.x-request-id=4ee26c47-4de6-49f5-94ae-8d3cef1f5c89 response.status="401 Unauthorized" url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/1.0.8"
DEBU[0000] Unauthorized header="Bearer realm=\"https://hub.kubesphere.com.cn/service/token\",service=\"harbor-registry\",scope=\"repository:kse/ks-core:pull\"" host=hub.kubesphere.com.cn
DEBU[0000] do request host=hub.kubesphere.com.cn request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.14.3 request.method=HEAD url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/1.0.8"
DEBU[0000] fetch response received host=hub.kubesphere.com.cn response.header.connection=keep-alive response.header.content-length=599 response.header.content-security-policy="frame-ancestors 'none'" response.header.content-type=application/vnd.oci.image.manifest.v1+json response.header.date="Tue, 03 Sep 2024 03:48:31 GMT" response.header.docker-content-digest="sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c\"" response.header.server=nginx response.header.set-cookie="sid=ebd3a34ef9500897f1f41b39d344bfc0; Path=/; HttpOnly" response.header.strict-transport-security="max-age=31536000; includeSubdomains; preload" response.header.x-frame-options=DENY response.header.x-request-id=0672d69f-5307-4792-b383-844d718488ea response.status="200 OK" url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/1.0.8"
DEBU[0000] resolved desc.digest="sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c" host=hub.kubesphere.com.cn
DEBU[0000] do request digest="sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c" request.header.accept="application/vnd.oci.image.manifest.v1+json, */*" request.header.user-agent=Helm/3.14.3 request.method=GET url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c"
DEBU[0000] fetch response received digest="sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c" response.header.connection=keep-alive response.header.content-length=599 response.header.content-security-policy="frame-ancestors 'none'" response.header.content-type=application/vnd.oci.image.manifest.v1+json response.header.date="Tue, 03 Sep 2024 03:48:31 GMT" response.header.docker-content-digest="sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c\"" response.header.server=nginx response.header.set-cookie="sid=e0dbe3e52a28925f96443875cc17ba34; Path=/; HttpOnly" response.header.strict-transport-security="max-age=31536000; includeSubdomains; preload" response.header.x-frame-options=DENY response.header.x-request-id=20fedf01-7019-4416-ac3d-abee93299f08 response.status="200 OK" url="https://hub.kubesphere.com.cn/v2/kse/ks-core/manifests/sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c"
DEBU[0000] do request digest="sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945" request.header.accept="application/vnd.cncf.helm.chart.content.v1.tar+gzip, */*" request.header.user-agent=Helm/3.14.3 request.method=GET url="https://hub.kubesphere.com.cn/v2/kse/ks-core/blobs/sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945"
DEBU[0000] do request digest="sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf" request.header.accept="application/vnd.cncf.helm.config.v1+json, */*" request.header.user-agent=Helm/3.14.3 request.method=GET url="https://hub.kubesphere.com.cn/v2/kse/ks-core/blobs/sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf"
DEBU[0000] fetch response received digest="sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945" response.header.accept-ranges=bytes response.header.cache-control="max-age=31536000" response.header.connection=keep-alive response.header.content-length=81533 response.header.content-security-policy="frame-ancestors 'none'" response.header.content-type=application/octet-stream response.header.date="Tue, 03 Sep 2024 03:48:31 GMT" response.header.docker-content-digest="sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945\"" response.header.server=nginx response.header.set-cookie="sid=7713264861749596c647e963b8ccbb3c; Path=/; HttpOnly" response.header.strict-transport-security="max-age=31536000; includeSubdomains; preload" response.header.x-frame-options=DENY response.header.x-request-id=4b23613f-d7ac-4fa8-acc3-8c79f083713e response.status="200 OK" url="https://hub.kubesphere.com.cn/v2/kse/ks-core/blobs/sha256:df1de00455d13b92aa16314cb7f679e91cd4a70168d2a89da4bb2252689a6945"
DEBU[0000] encountered unknown type application/vnd.cncf.helm.chart.content.v1.tar+gzip; children may not be fetched
DEBU[0000] fetch response received digest="sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf" response.header.accept-ranges=bytes response.header.cache-control="max-age=31536000" response.header.connection=keep-alive response.header.content-length=277 response.header.content-security-policy="frame-ancestors 'none'" response.header.content-type=application/octet-stream response.header.date="Tue, 03 Sep 2024 03:48:31 GMT" response.header.docker-content-digest="sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf" response.header.docker-distribution-api-version=registry/2.0 response.header.etag="\"sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf\"" response.header.server=nginx response.header.set-cookie="sid=eaa3437f1074acb34c01b940811bd955; Path=/; HttpOnly" response.header.strict-transport-security="max-age=31536000; includeSubdomains; preload" response.header.x-frame-options=DENY response.header.x-request-id=8af97edf-ce5a-4986-b186-85a5c247c8e0 response.status="200 OK" url="https://hub.kubesphere.com.cn/v2/kse/ks-core/blobs/sha256:28852339ce55e0df692d7e01575a59afbc2856aa31e1cc7e983b7dfee71b71cf"
DEBU[0000] encountered unknown type application/vnd.cncf.helm.config.v1+json; children may not be fetched
Pulled: hub.kubesphere.com.cn/kse/ks-core:1.0.8
Digest: sha256:d2a8e29a599721060807392bd5cc0480fa45f0c8cc9f22c112324b42c695d96c
upgrade.go:155: [debug] preparing upgrade for ks-core
upgrade.go:163: [debug] performing update for ks-core
upgrade.go:356: [debug] creating upgraded release for ks-core
client.go:486: [debug] Starting delete for "ks-core-pre-upgrade" Job
wait.go:66: [debug] beginning wait for 1 resources to be deleted with timeout of 5m0s
client.go:142: [debug] creating 1 resource(s)
client.go:712: [debug] Watching for changes to Job ks-core-pre-upgrade with timeout of 5m0s
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: ADDED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 1, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 1, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 1, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 2, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 3, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 3, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 1, jobs failed: 3, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 3, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 4, jobs succeeded: 0
client.go:740: [debug] Add/Modify event for ks-core-pre-upgrade: MODIFIED
client.go:779: [debug] ks-core-pre-upgrade: Jobs active: 0, jobs failed: 4, jobs succeeded: 0