在通过kubespray 安装k8s集群时,运行命令:

time kubespray deploy --verbose -u root -k .ssh/id_rsa -n flannel

出现错误:

The error appears to have been in '/xx/kubernetes-project/kubespray/roles/vault/handlers/main.yml': line 44, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: unseal vault
  ^ here

环境:cento7

问题解决:

1.卸载 ansible,然后重装 :

pip uninstall ansible 
pip install ansible

 2.卸载hashivault ,然后重装:

pip uninstall ansible-modules-hashivault
pip install ansible-modules-hashivault

在使用时没用 sudo 。

3.重新运行kubespray 命令来装即可。

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐