请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

ansible-playbook -i inventory/mycluster/hosts.yaml -b cluster.yml

task path: /home/kubespray-2.15.0/ansible_version.yml:10
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}
META: ran handlers
META: ran handlers
[WARNING]: Could not match supplied host pattern, ignoring: bastion

PLAY [bastion[0]] **************************************************************
skipping: no hosts matched

PLAY [k8s-cluster:etcd] ********************************************************
META: ran handlers
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML.
did not find expected

The error appears to be in ‘/home/kubespray-2.15.0/inventory/mycluster/group_vars/k8s-cluster/addons.yml’: line 7, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

Helm deployment

helm_enabled: true
^ here

正在回答 回答被采纳积分+3

1回答

刘果国 2022-01-07 09:29:17

检查一下host.yaml

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号