Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nodes to AWS cluster is broken #76

Open
srjturner opened this issue Dec 9, 2016 · 2 comments
Open

Add nodes to AWS cluster is broken #76

srjturner opened this issue Dec 9, 2016 · 2 comments

Comments

@srjturner
Copy link

srjturner commented Dec 9, 2016

I followed the instructions to add a node to my AWS-based cluster. First I did a kargo aws --add --nodes 1 which succeeded - the instance was created, and I can see it added to the inventory.cfg, but only under [all], not under [kube-node], which seems odd. Then I did a kargo deploy... but the instance did not get Kubernetes components added to the cluster (e.g. the "Install kubelet launch script" task returned "ok" rather than "changed" for the new worker instance) and after the deployment kubectl get nodes only returns the original set of instances.

I then tried (just for fun) manually editing inventory.cfg and adding the new host under [kube-node]. This time the new instance gets Kubernetes installed etc, but it fails at the task "Link etcd certificates for calico-node" for the masters and existing workers with the message "Cannot link, file exists at destination" for "/etc/ssl/etcd/ssl/ca.pem".

After that, Kubernetes is aware of the node, but unsurprisingly the networking is broken - when I deploy something I get messages like: Failed to setup network for pod "foo" using network plugins "cni": failed to find plugin "loopback" in path [/opt/loopback/bin /opt/cni/bin]; Skipping pod

@srjturner
Copy link
Author

Update: I just recreated my cluster, but using Flannel and not Calico as the overlay and although I still had to manually add the new worker to [kube-node] in inventory.cfg, the deploy succeeded and I have a healthy cluster.

@srjturner
Copy link
Author

FWIW this PR in Kargo itself mentioned that add nodes breaks calico networking.

@srjturner srjturner changed the title Add nodes to AWS cluster Add nodes to AWS cluster is broken Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant