kubesphere / ks-installer

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

When enable the devops, The ks-apiserver pod will be Crashbackoff status after the installer complete install. #2276

Open yasyx opened 7 months ago

yasyx commented 7 months ago

Upon reviewing the logs, I discovered that the error was due to the Jenkins password and JWT secret being configured as empty. Consequently, I examined the ks-installer playbook and found that in the file roles/ks-core/config/tasks/main.yaml, the retrieval of the secret did not include the namespace, which was the cause of the error. Therefore, I would like to submit a pull request (PR) to fix this issue. https://github.com/kubesphere/ks-installer/blob/38055b318b8f805af65aedfa5ad4508128b5eb2c/roles/ks-core/config/tasks/main.yaml#L43 https://github.com/kubesphere/ks-installer/blob/38055b318b8f805af65aedfa5ad4508128b5eb2c/roles/ks-core/config/tasks/main.yaml#L48

yasyx commented 7 months ago

This issue may only occur when running ks-installer locally; it might not exist when running ks-installer within a Kubernetes (k8s) environment.