环境:v1.18.8
离线安装:https://kubesphere.io/zh/docs/installing-on-kubernetes/on-prem-kubernetes/install-ks-on-linux-airgapped/
PS:部署过v3.0.0使用kubesphere-delete.sh卸载了,kube-federation-system ns删不掉 强制去掉finalizers才删除的
Task ‘multicluster’ failed:
{
“counter”: 38,
“created”: “2021-05-10T11:35:48.787387”,
“end_line”: 38,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 8.08613,
“end”: “2021-05-10T11:35:48.787086”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “ce71ccf5-592d-c2f0-ce84-000000000005”,
“playbook”: “/kubesphere/playbooks/multicluster.yaml”,
“playbook_uuid”: “a769ab3e-767a-43b9-8117-899d7fc1476f”,
“remote_addr”: “127.0.0.1”,
“res”: {
“ansible_no_log”: false,
“changed”: true,
“cmd”: “/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\n”,
“delta”: “0:00:06.999798”,
“end”: “2021-05-10 19:35:48.687966”,
“invocation”: {
“module_args”: {
“raw_params”: “/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\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-10 19:35:41.688168”,
“stderr”: "Error: rendered manifests contain a resource that already exists. Unable to continue with install: FederatedTypeConfig \“clusterroles.rbac.authorization.k8s.io\” in namespace \“kube-federation-system\” 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 \“kubefed\”; annotation validation error: missing key \“meta.helm.sh/release-namespace\”: must be set to \“kube-federation-system\”",
“stderr_lines”: [
"Error: rendered manifests contain a resource that already exists. Unable to continue with install: FederatedTypeConfig \“clusterroles.rbac.authorization.k8s.io\” in namespace \“kube-federation-system\” 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 \“kubefed\”; annotation validation error: missing key \“meta.helm.sh/release-namespace\”: must be set to \“kube-federation-system\”"
],
“stdout”: "Release \“kubefed\” does not exist. Installing it now.",
“stdout_lines”: [
"Release \“kubefed\” does not exist. Installing it now."
]
},
“role”: “ks-multicluster”,
“start”: “2021-05-10T11:35:40.700956”,
“task”: “Kubefed | Initing kube-federation-system”,
“task_action”: “command”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-multicluster/tasks/main.yml:31”,
“task_uuid”: “ce71ccf5-592d-c2f0-ce84-00000000001c”,
“uuid”: “81b33d0a-ac7a-4d2c-aa88-609bde2ddd1f”
},
“parent_uuid”: “ce71ccf5-592d-c2f0-ce84-00000000001c”,
“pid”: 4597,
“runner_ident”: “multicluster”,
“start_line”: 37,
“stdout”: "fatal: [localhost]: FAILED! => {\“changed\”: true, \“cmd\”: \“/usr/local/bin/helm upgrade –install kubefed /kubesphere/kubesphere/kubefed/kubefed -f /kubesphere/kubesphere/kubefed/custom-values-kubefed.yaml –namespace kube-federation-system –wait –timeout 1800s\n\”, \“delta\”: \“0:00:06.999798\”, \“end\”: \“2021-05-10 19:35:48.687966\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2021-05-10 19:35:41.688168\”, \“stderr\”: \"Error: rendered manifests contain a resource that already exists. Unable to continue with install: FederatedTypeConfig \\“clusterroles.rbac.authorization.k8s.io\\” in namespace \\“kube-federation-system\\” 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 \\“kubefed\\”; annotation validation error: missing key \\“meta.helm.sh/release-namespace\\”: must be set to \\“kube-federation-system\\”\", \“stderr_lines\”: [\"Error: rendered manifests contain a resource that already exists. Unable to continue with install: FederatedTypeConfig \\“clusterroles.rbac.authorization.k8s.io\\” in namespace \\“kube-federation-system\\” 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 \\“kubefed\\”; annotation validation error: missing key \\“meta.helm.sh/release-namespace\\”: must be set to \\“kube-federation-system\\”\"], \“stdout\”: \"Release \\“kubefed\\” does not exist. Installing it now.\", \“stdout_lines\”: [\"Release \\“kubefed\\” does not exist. Installing it now.\“]}”,
“uuid”: “81b33d0a-ac7a-4d2c-aa88-609bde2ddd1f”
}