使用kubeadm返回错误在AWS上安装kubernetes cluser

时间:2019-05-02 09:53:40

标签: amazon-web-services kubernetes centos7 kubeadm kubespray

环境:

  
      
  • 云提供商: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:无此类文件或目录

0 个答案:

没有答案