Calico wait for etcd error when creating kubernetes cluster using kubespray

0 votes

The following error when trying to run Kubernetes cluster on ec2 using kubespray

TASK [network_plugin/calico : Calico | wait for etcd] ***********************************************************************************************************************************************************************************************
Thursday 20 July 2017  17:21:40 -0400 (0:00:00.327)       0:04:16.018 ********* 
FAILED - RETRYING: Calico | wait for etcd (10 retries left).
FAILED - RETRYING: Calico | wait for etcd (9 retries left).
FAILED - RETRYING: Calico | wait for etcd (8 retries left).
FAILED - RETRYING: Calico | wait for etcd (7 retries left).
FAILED - RETRYING: Calico | wait for etcd (6 retries left).
FAILED - RETRYING: Calico | wait for etcd (5 retries left).
FAILED - RETRYING: Calico | wait for etcd (4 retries left).
FAILED - RETRYING: Calico | wait for etcd (3 retries left).
FAILED - RETRYING: Calico | wait for etcd (2 retries left).
FAILED - RETRYING: Calico | wait for etcd (1 retries left).
fatal: [node1 -> None]: FAILED! => {"attempts": 10, "changed": false, "content": "", "failed": true, "msg": "Status code was not [200]: Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "https://localhost:2379/health"}
Jan 22, 2019 in Ansible by Kanika
2,143 views

1 answer to this question.

0 votes

Hey @Kanika, You need to open two ports for etcd. One 2379 as its mentioned in the logs and this port communicated with 2380, so obviously you'll need to open 2380 as well. Update your security group to aloow traffic on both these ports. 

answered Jan 22, 2019 by Jinha

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Install snap for Kubernetes cluster automation

Hey @Mohit, there is no snap module ...READ MORE

answered Jan 22, 2019 in Ansible by Veronica
738 views
+1 vote
1 answer
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,396 views
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,476 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP