麻烦看下这是什么引起的,在Linux下干净集群安装
PLAY RECAP *********************************************************************
localhost : ok=7 changed=3 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match ‘all’
PLAY [localhost] ***************************************************************
TASK [download : include_tasks] ************************************************
skipping: [localhost]
TASK [download : Download items] ***********************************************
skipping: [localhost]
TASK [download : Sync container] ***********************************************
skipping: [localhost]
TASK [kubesphere-defaults : Configure defaults] ********************************
ok: [localhost] => {
“msg”: “Check roles/kubesphere-defaults/defaults/main.yml”
}
TASK [metrics-server : Metrics-Server | Checking old installation files] *******
fatal: [localhost]: FAILED! => {“msg”: “The conditional check ‘metrics_server is defined and metrics_server.enabled == true’ failed. The error was: error while evaluating conditional (metrics_server is defined and metrics_server.enabled == true): ‘None’ has no attribute ‘enabled’\n\nThe error appears to be in ‘/kubesphere/installer/roles/metrics-server/tasks/main.yml’: line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Metrics-Server | Checking old installation files\n ^ here\n”}
…ignoring
TASK [metrics-server : Metrics-Server | deleting old metrics-server] ***********
fatal: [localhost]: FAILED! => {“msg”: “The conditional check ‘metrics_server is defined and metrics_server.enabled == true’ failed. The error was: error while evaluating conditional (metrics_server is defined and metrics_server.enabled == true): ‘None’ has no attribute ‘enabled’\n\nThe error appears to be in ‘/kubesphere/installer/roles/metrics-server/tasks/main.yml’: line 10, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Metrics-Server | deleting old metrics-server\n ^ here\n”}
PLAY RECAP *********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=1