重新运行ks-installer报错:
Task 'monitoring' failed:
******************************************************************************************************************************************************
{
"counter": 120,
"created": "2021-11-18T05:47:24.495266",
"end_line": 115,
"event": "runner_on_failed",
"event_data": {
"duration": 92.84056,
"end": "2021-11-18T05:47:24.494077",
"event_loop": null,
"host": "localhost",
"ignore_errors": null,
"play": "localhost",
"play_pattern": "localhost",
"play_uuid": "4e25cedc-fdbd-bac6-01a4-000000000005",
"playbook": "/kubesphere/playbooks/monitoring.yaml",
"playbook_uuid": "f5e57b46-d44d-425c-9acf-65a8e62ae631",
"remote_addr": "127.0.0.1",
"res": {
"_ansible_no_log": false,
"attempts": 3,
"changed": true,
"cmd": "/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\n",
"delta": "0:00:13.129597",
"end": "2021-11-18 13:47:24.309337",
"invocation": {
"module_args": {
"_raw_params": "/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\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-11-18 13:47:11.179740",
"stderr": "Error: UPGRADE FAILED: failed to replace object: Service \"notification-manager-controller-metrics\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset && failed to replace object: Service \"notification-manager-webhook\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset",
"stderr_lines": [
"Error: UPGRADE FAILED: failed to replace object: Service \"notification-manager-controller-metrics\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset && failed to replace object: Service \"notification-manager-webhook\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset"
],
"stdout": "",
"stdout_lines": []
},
"role": "ks-monitor",
"start": "2021-11-18T05:45:51.653517",
"task": "notification-manager | Deploying notification-manager",
"task_action": "command",
"task_args": "",
"task_path": "/kubesphere/installer/roles/ks-monitor/tasks/notification-manager.yaml:36",
"task_uuid": "4e25cedc-fdbd-bac6-01a4-000000000058",
"uuid": "d21a664a-785a-4399-8a53-7d37856dbe2b"
},
"parent_uuid": "4e25cedc-fdbd-bac6-01a4-000000000058",
"pid": 6043,
"runner_ident": "monitoring",
"start_line": 114,
"stdout": "fatal: [localhost]: FAILED! => {\"attempts\": 3, \"changed\": true, \"cmd\": \"/usr/local/bin/helm upgrade --install notification-manager /kubesphere/kubesphere/notification-manager -f /kubesphere/kubesphere/notification-manager/custom-values-notification.yaml -n kubesphere-monitoring-system --force\\n\", \"delta\": \"0:00:13.129597\", \"end\": \"2021-11-18 13:47:24.309337\", \"msg\": \"non-zero return code\", \"rc\": 1, \"start\": \"2021-11-18 13:47:11.179740\", \"stderr\": \"Error: UPGRADE FAILED: failed to replace object: Service \\\"notification-manager-controller-metrics\\\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset && failed to replace object: Service \\\"notification-manager-webhook\\\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset\", \"stderr_lines\": [\"Error: UPGRADE FAILED: failed to replace object: Service \\\"notification-manager-controller-metrics\\\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset && failed to replace object: Service \\\"notification-manager-webhook\\\" is invalid: spec.clusterIPs[0]: Invalid value: []string(nil): primary clusterIP can not be unset\"], \"stdout\": \"\", \"stdout_lines\": []}",
"uuid": "d21a664a-785a-4399-8a53-7d37856dbe2b"
}