查看 ks-installer 日志错误如下:
`Task ‘devops’ failed:
{
“counter”: 225,
“created”: “2021-03-31T09:02:42.492513”,
“end_line”: 217,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 1.654967,
“end”: “2021-03-31T09:02:42.491638”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “eaf4b02e-21c8-25ac-f209-000000000005”,
“playbook”: “/kubesphere/playbooks/devops.yaml”,
“playbook_uuid”: “046fce8b-5209-4036-9262-e73dab0eb0a8”,
“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:01.342847”,
“end”: “2021-03-31 17:02:42.445699”,
“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-03-31 17:02:41.102852”,
“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.resources.requests.storage: Forbidden: field can not be less than previous value",
“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.resources.requests.storage: Forbidden: field can not be less than previous value"
],
“stdout”: "",
“stdout_lines”: []
},
“role”: “ks-devops/jenkins”,
“start”: “2021-03-31T09:02:40.836671”,
“task”: “Jenkins | Deploy Jenkins”,
“task_action”: “command”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-devops/jenkins/tasks/main.yaml:66”,
“task_uuid”: “eaf4b02e-21c8-25ac-f209-000000000049”,
“uuid”: “2b660de7-9da1-4274-8354-91f91cbbe691”
},
“parent_uuid”: “eaf4b02e-21c8-25ac-f209-000000000049”,
“pid”: 3541,
“runner_ident”: “devops”,
“start_line”: 216,
“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:01.342847\”, \“end\”: \“2021-03-31 17:02:42.445699\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2021-03-31 17:02:41.102852\”, \“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.resources.requests.storage: Forbidden: field can not be less than previous value\", \“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.resources.requests.storage: Forbidden: field can not be less than previous value\"], \“stdout\”: \“\”, \“stdout_lines\”: []}",
“uuid”: “2b660de7-9da1-4274-8354-91f91cbbe691”
}
`
请大神指点怎么解决