阿里云部署kubesphere后,添加devops组件,安装无法成功
k8s环境:
kubectl version
Client Version: version.Info{Major:“1”, Minor:“18+”, GitVersion:“v1.18.8-aliyun.1”, GitCommit:“d2f5a0f”, GitTreeState:"", BuildDate:“2020-10-23T07:01:01Z”, GoVersion:“go1.13.15”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“18+”, GitVersion:“v1.18.8-aliyun.1”, GitCommit:“d2f5a0f”, GitTreeState:"", BuildDate:“2020-10-23T06:48:31Z”, GoVersion:“go1.13.15”, Compiler:“gc”, Platform:“linux/amd64”}
[root@iZbp1inwk5hwifzoiuziacZ .kube]#
操作系统:
[root@iziacZ .kube]# cat /etc/redhat-release
Alibaba Cloud Linux (Aliyun Linux) release 2.1903 LTS (Hunting Beagle)
具体报错:
total: 7 completed:7
**************************************************
Task 'devops' failed:
******************************************************************************************************************************************************
{
"counter": 110,
"created": "2020-11-18T02:34:39.690807",
"end_line": 109,
"event": "runner_on_failed",
"event_data": {
"duration": 1.195336,
"end": "2020-11-18T02:34:39.690523",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "0ad4314e-968b-acc8-d626-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "b0ec2c06-fa7b-4aa7-990b-4d562371f92b",
"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.611492",
"end": "2020-11-18 10:34:39.619204",
"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": "2020-11-18 10:34:39.007712",
"stderr": "coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\nError: parse error at (jenkins/templates/config.yaml:223): unexpected EOF",
"stderr_lines": [
"coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>",
"Error: parse error at (jenkins/templates/config.yaml:223): unexpected EOF"
],
"stdout": "Release \"ks-jenkins\" does not exist. Installing it now.",
"stdout_lines": [
"Release \"ks-jenkins\" does not exist. Installing it now."
]
},
"role": "ks-devops/jenkins",
"start": "2020-11-18T02:34:38.495187",
"task": "Jenkins | Deploy Jenkins",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/jenkins/tasks/main.yaml:66",
"task_uuid": "0ad4314e-968b-acc8-d626-00000000003a",
"uuid": "e4ec2e63-b7d7-49fc-9368-5c2c9a18bae2"
},
"parent_uuid": "0ad4314e-968b-acc8-d626-00000000003a",
"pid": 94717,
"runner_ident": "devops",
"start_line": 108,
"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.611492\", \"end\": \"2020-11-18 10:34:39.619204\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2020-11-18 10:34:39.007712\", \"stderr\": \"coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\\nError: parse error at (jenkins/templates/config.yaml:223): unexpected EOF\", \"stderr_lines\": [\"coalesce.go:199: warning: destination for InitScripts is a table. Ignoring non-table value <nil>\", \"Error: parse error at (jenkins/templates/config.yaml:223): unexpected EOF\"], \"stdout\": \"Release \\\"ks-jenkins\\\" does not exist. Installing it now.\", \"stdout_lines\": [\"Release \\\"ks-jenkins\\\" does not exist. Installing it now.\"]}",
"uuid": "e4ec2e63-b7d7-49fc-9368-5c2c9a18bae2"