kubesphere / ks-installer

Install KubeSphere on existing Kubernetes cluster
https://kubesphere.io
Apache License 2.0
527 stars 744 forks source link

离线安装时,设置namespaceoverride: "kubesphereio"不生效 #2290

Open yisampi opened 2 months ago

yisampi commented 2 months ago

离线安装kubernetes和kubesphere, 设置了namespaceoverride: "kubesphereio",也执行了kubectl -n kubesphere-system edit cc ks-installer 但还是不起作用

apiVersion: installer.kubesphere.io/v1alpha1 kind: ClusterConfiguration metadata: name: ks-installer namespace: kubesphere-system labels: version: v3.4.1 spec: persistence: storageClass: "" authentication: jwtSecret: "" local_registry: "harbor-kk.ai-lingsuan.com" namespaceoverride: "kubesphereio"

错误显示如下 kube-system snapshot-controller-0 0/1 ImagePullBackOff 0 15m kubesphere-controls-system default-http-backend-6f5d88f56-lbcff 0/1 ImagePullBackOff 0 13m kubesphere-monitoring-system kube-state-metrics-6d6b5b4ff8-94j8f 0/3 ImagePullBackOff 0 12m kubesphere-monitoring-system node-exporter-xdhnq 0/2 ImagePullBackOff 0 12m kubesphere-monitoring-system notification-manager-operator-5c78bbbd64-9r4q2 0/2 ImagePullBackOff 0 11m kubesphere-monitoring-system notification-manager-post-install-46s5q 0/1 ImagePullBackOff 0 69s kubesphere-monitoring-system prometheus-operator-74bcc557cf-mpncz 0/2 ImagePullBackOff 0 12m kubesphere-system ks-apiserver-7698c9cd6f-g4k8r 0/1 ContainerCreating 0 13m kubesphere-system ks-console-749c67d74d-q6bf6 0/1 ImagePullBackOff 0 13m kubesphere-system ks-controller-manager-85cf9c98c5-4rspw 0/1 ContainerCreating 0 13m

Normal Scheduled 19m default-scheduler Successfully assigned kube-system/snapshot-controller-0 to dc03-h100-213 Normal SandboxChanged 19m (x4 over 19m) kubelet Pod sandbox changed, it will be killed and re-created. Warning Failed 18m (x6 over 19m) kubelet Error: ImagePullBackOff Normal Pulling 18m (x3 over 19m) kubelet Pulling image "harbor-kk.ai-lingsuan.com/csiplugin/snapshot-controller:v4.0.0" Warning Failed 18m (x3 over 19m) kubelet Failed to pull image "harbor-kk.ai-lingsuan.com/csiplugin/snapshot-controller:v4.0.0": rpc error: code = Unknown desc = Error response from daemon: unknown: repository csiplugin/snapshot-controller not found Warning Failed 18m (x3 over 19m) kubelet Error: ErrImagePull Normal BackOff 4m10s (x67 over 19m) kubelet Back-off pulling image "harbor-kk.ai-lingsuan.com/csiplugin/snapshot-controller:v4.0.0"

upczsh commented 1 month ago

+1