操作系统信息
# uname -a
Linux master01 5.4.196-1.el7.elrepo.x86_64 #1 SMP Tue May 24 12:49:20 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
Kubernetes版本信息
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:26:19Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:18:48Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
Version: 0.1.0
RuntimeName: containerd
RuntimeVersion: 1.6.6
RuntimeApiVersion: v1
KubeSphere版本信息
v3.3.0 在已有 K8S 上启用 DevOps 失败, Task 'devops' failded
问题是什么
已有 K8S 上启用 DevOps 失败, Task ‘devops’ failded;
另: 每次 "在自定义资源中,点击 ks-installer
,选择编辑 YAML "后, 都会丢失 `accessTokenMaxAge`
Start installing monitoring
Start installing multicluster
Start installing openpitrix
Start installing network
Start installing alerting
Start installing devops
**************************************************
Waiting for all tasks to be completed ...
task alerting status is successful (1/6)
task network status is successful (2/6)
task openpitrix status is successful (3/6)
task multicluster status is successful (4/6)
task devops status is failed (5/6)
task monitoring status is successful (6/6)
**************************************************
Collecting installation results ...
Task 'devops' failed:
******************************************************************************************************************************************************
{
"counter": 145,
"created": "2022-06-29T08:29:07.729440",
"end_line": 174,
"event": "runner_on_failed",
"event_data": {
"duration": 1.890352,
"end": "2022-06-29T08:29:07.729295",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "e289f9d3-f574-8b86-920a-000000000005",
"playbook": "/kubesphere/playbooks/devops.yaml",
"playbook_uuid": "45494960-b6df-4d63-914d-72d1a5d8f349",
"remote_addr": "127.0.0.1",
"res": {
"changed": true,
"msg": "All items completed",
"results": [
{
"_ansible_item_label": "kubesphere-devops-worker",
"_ansible_no_log": false,
"ansible_loop_var": "item",
"changed": true,
"cmd": "/usr/local/bin/kubectl label --overwrite namespaces kubesphere-devops-worker kubesphere.io/workspace=system-workspace\n",
"delta": "0:00:00.308306",
"end": "2022-06-29 16:29:07.546699",
"failed": true,
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/kubectl label --overwrite namespaces kubesphere-devops-worker kubesphere.io/workspace=system-workspace\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
}
},
"item": "kubesphere-devops-worker",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-06-29 16:29:07.238393",
"stderr": "Error from server (NotFound): namespaces \"kubesphere-devops-worker\" not found",
"stderr_lines": [
"Error from server (NotFound): namespaces \"kubesphere-devops-worker\" not found"
],
"stdout": "",
"stdout_lines": []
}
]
},
"resolved_action": "shell",
"role": "ks-devops",
"start": "2022-06-29T08:29:05.838943",
"task": "ks-devops | Labelling devops namespaces as system workspace",
"task_action": "shell",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-devops/tasks/main.yaml:232",
"task_uuid": "e289f9d3-f574-8b86-920a-000000000043",
"uuid": "43c00ef3-12d3-4309-a105-f5ecd0ba0571"
},
"parent_uuid": "e289f9d3-f574-8b86-920a-000000000043",
"pid": 18015,
"runner_ident": "devops",
"start_line": 174,
"stdout": "",
"uuid": "43c00ef3-12d3-4309-a105-f5ecd0ba0571"
}
******************************************************************************************************************************************************
操作是按照 `https://kubesphere.io/zh/docs/v3.3/pluggable-components/devops/#%E5%9C%A8%E5%AE%89%E8%A3%85%E5%90%8E%E5%90%AF%E7%94%A8-devops\`执行.
当前相关 ns
# kubectl get ns
NAME STATUS AGE
argocd Active 81m
demo-project Active 99m
kubernetes-dashboard Active 19d
kubesphere-controls-system Active 28h
kubesphere-devops-system Active 86m
kubesphere-monitoring-federated Active 28h
kubesphere-monitoring-system Active 28h
kubesphere-system Active 29h
project-test Active 3h13m
万分感谢解答!