1

在 Ubuntu16.04中,我尝试Kubespray2.5使用 Ansible Playbook(2.9.7)命令进行部署并出现错误:

我已经多次使用 2.5 版部署 kubespray,但这次只有我收到此错误。请帮助我。

ansible-playbook -i inventory/mycluster/hosts.ini cluster.yml

    TASK [docker : ensure docker-engine repository public key is installed] *******************************************************
Friday 08 May 2020  16:28:44 +0530 (0:00:20.450)       0:04:46.454 ************
FAILED - RETRYING: ensure docker-engine repository public key is installed (4 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (4 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (4 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (3 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (3 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (3 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (2 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (2 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (2 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (1 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (1 retries left).
FAILED - RETRYING: ensure docker-engine repository public key is installed (1 retries left).
failed: [node2] (item=58118E89F3A912897C070ADBF76221572C52609D) => {"attempts": 4, "changed": false, "item": "58118E89F3A912897C070ADBF76221572C52609D", "msg": "Failed to download key at https://apt.dockerproject.org/gpg: HTTP Error 404: Not Found"}
failed: [node3] (item=58118E89F3A912897C070ADBF76221572C52609D) => {"attempts": 4, "changed": false, "item": "58118E89F3A912897C070ADBF76221572C52609D", "msg": "Failed to download key at https://apt.dockerproject.org/gpg: HTTP Error 404: Not Found"}
failed: [node1] (item=58118E89F3A912897C070ADBF76221572C52609D) => {"attempts": 4, "changed": false, "item": "58118E89F3A912897C070ADBF76221572C52609D", "msg": "Failed to download key at https://apt.dockerproject.org/gpg: HTTP Error 404: Not Found"}

NO MORE HOSTS LEFT ************************************************************************************************************
        to retry, use: --limit @/root/kubespray/cluster.retry

PLAY RECAP ********************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0
node1                      : ok=62   changed=0    unreachable=0    failed=1
node2                      : ok=64   changed=0    unreachable=0    failed=1
node3                      : ok=62   changed=9    unreachable=0    failed=1
4

1 回答 1

2

https://apt.dockerproject.org/存储库已于 2020年3 月 31 日关闭。

你的剧本已经过时了;获取更新版本或根据链接说明自行调整。

于 2020-05-10T20:25:02.137 回答