今天重新全新安装,又报以下错误:
TASK [kubernetes/master : set kubeadm certificate key] *************************************************************************************************************
Monday 18 November 2019 14:56:02 +0800 (0:00:28.859) 0:12:08.779 *******
fatal: [sphm1]: FAILED! => {}
MSG:
The conditional check ‘item | trim | match(’.–certificate-key .‘)’ failed. The error was: template error while templating string: no filter named ‘match’. String: {% if item | trim | match(‘.–certificate-key .’) %} True {% else %} False {% endif %}
The error appears to be in ‘/home/kbs/kubesphere-all-v2.1.0/k8s/roles/kubernetes/master/tasks/kubeadm-setup.yml’: line 133, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: set kubeadm certificate key
^ here
fatal: [sphm2]: FAILED! => {}
MSG:
The conditional check ‘item | trim | match(’.–certificate-key .‘)’ failed. The error was: template error while templating string: no filter named ‘match’. String: {% if item | trim | match(‘.–certificate-key .’) %} True {% else %} False {% endif %}
The error appears to be in ‘/home/kbs/kubesphere-all-v2.1.0/k8s/roles/kubernetes/master/tasks/kubeadm-setup.yml’: line 133, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: set kubeadm certificate key
^ here
fatal: [sphm3]: FAILED! => {}
MSG:
The conditional check ‘item | trim | match(’.–certificate-key .‘)’ failed. The error was: template error while templating string: no filter named ‘match’. String: {% if item | trim | match(‘.–certificate-key .’) %} True {% else %} False {% endif %}
The error appears to be in ‘/home/kbs/kubesphere-all-v2.1.0/k8s/roles/kubernetes/master/tasks/kubeadm-setup.yml’: line 133, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: set kubeadm certificate key
^ here
NO MORE HOSTS LEFT *************************************************************************************************************************************************
PLAY RECAP *********************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
sphm1 : ok=454 changed=36 unreachable=0 failed=1 skipped=481 rescued=0 ignored=2
sphm2 : ok=406 changed=32 unreachable=0 failed=1 skipped=411 rescued=0 ignored=2
sphm3 : ok=406 changed=32 unreachable=0 failed=1 skipped=411 rescued=0 ignored=2
sphn1 : ok=282 changed=17 unreachable=0 failed=0 skipped=292 rescued=0 ignored=1
sphn2 : ok=282 changed=17 unreachable=0 failed=0 skipped=292 rescued=0 ignored=1
sphn3 : ok=282 changed=17 unreachable=0 failed=0 skipped=292 rescued=0 ignored=1