创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
Ubuntu18.04,4C/8G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.5”, GitCommit:“c285e781331a3785a7f436042c65c5641ce8a9e9”, GitTreeState:“clean”, BuildDate:“2022-03-16T15:58:47Z”, GoVersion:“go1.17.8”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“23”, GitVersion:“v1.23.5”, GitCommit:“c285e781331a3785a7f436042c65c5641ce8a9e9”, GitTreeState:“clean”, BuildDate:“2022-03-16T15:52:18Z”, GoVersion:“go1.17.8”, Compiler:“gc”, Platform:“linux/amd64”}容器运行时
例如,使用 docker/containerd,版本多少
KubeSphere版本信息
3.3.0
已有K8s
离线安装
问题是什么
安装devops失败,但是我连argocd这个namespace都没有,反反复复报这个错
Task ‘devops’ failed:
******************************************************************************************************************************************************
{
“counter”: 141,
“created”: “2022-07-02T19:02:34.368339”,
“end_line”: 171,
“event”: “runner_on_failed”,
“event_data”: {
"duration": 52.712988,
"end": "2022-07-02T19:02:34.367827",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "623c2353-9973-992a-b173-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "cf2cd71a-de9b-46ad-bf38-fcdec89cfd7d",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"attempts": 3,
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install devops /kubesphere/kubesphere/ks-devops/charts/argo-cd-4.4.0.tgz -n argocd --create-namespace --reuse-values -f /kubesphere/kubesphere/ks-devops/argo-cd-values.yaml\\n",
"delta": "0:00:04.413368",
"end": "2022-07-03 03:02:34.265596",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/helm upgrade --install devops /kubesphere/kubesphere/ks-devops/charts/argo-cd-4.4.0.tgz -n argocd --create-namespace --reuse-values -f /kubesphere/kubesphere/ks-devops/argo-cd-values.yaml\\n",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": "/bin/bash",
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2022-07-03 03:02:29.852228",
"stderr": "Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount \\"argocd-application-controller\\" in namespace \\"argocd\\" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\"app.kubernetes.io/managed-by\\": must be set to \\"Helm\\"; annotation validation error: missing key \\"meta.helm.sh/release-name\\": must be set to \\"devops\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"argocd\\"",
"stderr_lines": [
"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount \\"argocd-application-controller\\" in namespace \\"argocd\\" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\"app.kubernetes.io/managed-by\\": must be set to \\"Helm\\"; annotation validation error: missing key \\"meta.helm.sh/release-name\\": must be set to \\"devops\\"; annotation validation error: missing key \\"meta.helm.sh/release-namespace\\": must be set to \\"argocd\\""
],
"stdout": "Release \\"devops\\" does not exist. Installing it now.",
"stdout_lines": [
"Release \\"devops\\" does not exist. Installing it now."
]
},
"resolved_action": "command",
"role": "ks-devops",
"start": "2022-07-02T19:01:41.654839",
"task": "ks-devops | Upgrading or installing Argo CD",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/tasks/main.yaml:176",
"task_uuid": "623c2353-9973-992a-b173-000000000041",
"uuid": "dc016fc7-0396-4a91-921e-e49dd0661b05"
},
“parent_uuid”: “623c2353-9973-992a-b173-000000000041”,
“pid”: 4168,
“runner_ident”: “devops”,
“start_line”: 170,
“stdout”: "fatal: [localhost]: FAILED! => {\“attempts\”: 3, \“changed\”: true, \“cmd\”: \“/usr/local/bin/helm upgrade –install devops /kubesphere/kubesphere/ks-devops/charts/argo-cd-4.4.0.tgz -n argocd –create-namespace –reuse-values -f /kubesphere/kubesphere/ks-devops/argo-cd-values.yaml\\n\”, \“delta\”: \“0:00:04.413368\”, \“end\”: \“2022-07-03 03:02:34.265596\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2022-07-03 03:02:29.852228\”, \“stderr\”: \"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount \\\“argocd-application-controller\\\” in namespace \\\“argocd\\\” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\\“app.kubernetes.io/managed-by\\\”: must be set to \\\“Helm\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-name\\\”: must be set to \\\“devops\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“argocd\\\”\", \“stderr_lines\”: [\"Error: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount \\\“argocd-application-controller\\\” in namespace \\\“argocd\\\” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key \\\“app.kubernetes.io/managed-by\\\”: must be set to \\\“Helm\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-name\\\”: must be set to \\\“devops\\\”; annotation validation error: missing key \\\“meta.helm.sh/release-namespace\\\”: must be set to \\\“argocd\\\”\"], \“stdout\”: \"Release \\\“devops\\\” does not exist. Installing it now.\", \“stdout_lines\”: [\"Release \\\“devops\\\” does not exist. Installing it now.\“]}”,
“uuid”: “dc016fc7-0396-4a91-921e-e49dd0661b05”
}
******************************************************************************************************************************************************