环境:
- 云提供商:AWS
- 操作系统:centos LINUX 7
- Ansible 版本:2.7.10
- Kubespray 版本:主标签:2.9.0
Copy of your inventory file:
master-1 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
master-2 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
worker-1 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
worker-2 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
worker-3 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
worker-4 ansible_host=ip-10-1-x-x.eu-west-3.compute.internal ip=10.1.x.x
[kube-master]
master-1
master-2
[etcd]
master-1
master-2
worker-1
[kube-node]
worker-1
worker-2
worker-3
worker-4
[k8s-cluster:children]
kube-master
kube-node
Command used to invoke ansible:
ansible-playbook -i inventory/moneydev-jordan/inventory.ini cluster.yml -b -v --flush-cache --private-key=~/.ssh/k8s-key.pem --user=centos --extra-vars bootstrap_os=centos
Output of ansible run:
TASK [kubernetes/kubeadm : Join to cluster] ***********************************************************************************************************************************************************************
Wednesday 24 April 2019 12:22:20 +0000 (0:00:00.898) 0:04:40.811 *******
fatal: [worker-1]: FAILED! => {"changed": false, "msg": "async task did not complete within the requested time"}
fatal: [worker-3]: FAILED! => {"changed": false, "msg": "async task did not complete within the requested time"}
fatal: [worker-2]: FAILED! => {"changed": false, "msg": "async task did not complete within the requested time"}
fatal: [worker-4]: FAILED! => {"changed": false, "msg": "async task did not complete within the requested time"}
登录到工作节点并检查日志我发现了以下内容
无法加载客户端 CA 文件 /etc/kubernetes/ssl/ca.crt:打开 /etc/kubernetes/ssl/ca.crt:没有这样的文件或目录