HhetaoK零S
集群是1master 4node,先是用kubekey,始终卡在节点检测那,后用ks-installer升级,ks-installer有一个这样的报错
`
Task ‘devops’ failed:
{
“counter”: 227,
“created”: “2021-05-14T00:41:20.403203”,
“end_line”: 219,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 1.002557,
“end”: “2021-05-14T00:41:20.403008”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “a6ae04f7-4cda-caab-3bd7-000000000005”,
“playbook”: “/kubesphere/playbooks/devops.yaml”,
“playbook_uuid”: “ddc514fb-4b74-4795-8afa-76d9a09a68e6”,
“remote_addr”: “127.0.0.1”,
“res”: {
“ansible_no_log”: false,
“changed”: true,
“cmd”: “/usr/local/bin/helm upgrade –install ks-jenkins /kubesphere/kubesphere/jenkins/jenkins -f /kubesphere/kubesphere/jenkins/custom-values-jenkins.yaml –namespace kubesphere-devops-system\n”,
“delta”: “0:00:00.796131”,
“end”: “2021-05-14 08:41:20.379328”,
“invocation”: {
“module_args”: {
“raw_params”: “/usr/local/bin/helm upgrade –install ks-jenkins /kubesphere/kubesphere/jenkins/jenkins -f /kubesphere/kubesphere/jenkins/custom-values-jenkins.yaml –namespace kubesphere-devops-system\n”,
“_uses_shell”: true,
“argv”: null,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2021-05-14 08:41:19.583197”,
“stderr”: "coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\nError: UPGRADE FAILED: cannot patch \“ks-jenkins\” with kind PersistentVolumeClaim: PersistentVolumeClaim \“ks-jenkins\” is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims",
“stderr_lines”: [
“coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>”,
"Error: UPGRADE FAILED: cannot patch \“ks-jenkins\” with kind PersistentVolumeClaim: PersistentVolumeClaim \“ks-jenkins\” is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims"
],
“stdout”: "",
“stdout_lines”: []
},
“role”: “ks-devops/jenkins”,
“start”: “2021-05-14T00:41:19.400451”,
“task”: “Jenkins | Deploy Jenkins”,
“task_action”: “command”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-devops/jenkins/tasks/main.yaml:66”,
“task_uuid”: “a6ae04f7-4cda-caab-3bd7-000000000049”,
“uuid”: “a2da7d52-ebc7-4022-8857-5cbf32412e12”
},
“parent_uuid”: “a6ae04f7-4cda-caab-3bd7-000000000049”,
“pid”: 7079,
“runner_ident”: “devops”,
“start_line”: 218,
“stdout”: "fatal: [localhost]: FAILED! => {\“changed\”: true, \“cmd\”: \“/usr/local/bin/helm upgrade –install ks-jenkins /kubesphere/kubesphere/jenkins/jenkins -f /kubesphere/kubesphere/jenkins/custom-values-jenkins.yaml –namespace kubesphere-devops-system\n\”, \“delta\”: \“0:00:00.796131\”, \“end\”: \“2021-05-14 08:41:20.379328\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2021-05-14 08:41:19.583197\”, \“stderr\”: \"coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\nError: UPGRADE FAILED: cannot patch \\“ks-jenkins\\” with kind PersistentVolumeClaim: PersistentVolumeClaim \\“ks-jenkins\\” is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims\", \“stderr_lines\”: [\“coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\”, \"Error: UPGRADE FAILED: cannot patch \\“ks-jenkins\\” with kind PersistentVolumeClaim: PersistentVolumeClaim \\“ks-jenkins\\” is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims\"], \“stdout\”: \“\”, \“stdout_lines\”: []}",
“uuid”: “a2da7d52-ebc7-4022-8857-5cbf32412e12”
}
`
发现集群不能登录,于是apply了一个admin.yaml,手动生成admin用户,登录集群后发现企业空间都没了,只有一个默认的,用户也没有,集群有100多个项目,现在可以正常访问,正常运行流水线,就是集群上看不到,请看看应该如何解决