Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add nodes to kubernetes cluster on AWS?

I initially setup a cluster with the kube-up.sh utility on AWS. Now I ran out of capacity and I'm looking for a simple way to extend my cluster with more nodes.

Is there a 'simple' way to add more nodes to a running cluster on AWS? I've been reading all the docs but cannot seem to find a way.

Thanks!

like image 609
florianrosenberg Avatar asked Jul 15 '15 22:07

florianrosenberg


People also ask

How do I create a cluster of nodes in AWS?

Open the Amazon EKS console at https://console.aws.amazon.com/eks/home#/clusters . Choose the name of the cluster that you want to create a managed node group in. Select the Compute tab. Choose Add node group.

What is a nodes in a cluster AWS?

A cluster is a collection of Amazon Elastic Compute Cloud (Amazon EC2) instances. Each instance in the cluster is called a node. Each node has a role within the cluster, referred to as the node type.


2 Answers

If you used kube-up, your minions should be launched into an auto-scaling group, and you should just be able to change the size of that auto-scaling group.

This question is a few months old, so I'm not sure whether this was the case back in July, but it should definitely be the case now.

I'm also working on launching the master into an auto-scaling group, so that if the master dies it is automatically restated, but that is a little more complicated because of the persistent disk. But hopefully I'll make 1.1!

like image 144
justinsb Avatar answered Nov 15 '22 09:11

justinsb


It's not "simple", but if you clone the set up on one of your nodes, it will automatically register itself with the master.

Basically you need to clone the kubelet configuration and authorization tokens.

You will also need to set up advanced networking to route packets to the subnet of the node. Again, if you look at the config of an existing node, you should be able to emulate what needs to happen.

This is one of the places where Google Container Engine makes things easier, scaling is integrated into the console experience.

Eventually someone may support Amazon autoscaling groups, but for now this sort of thing is definitely better supported on the Google Cloud Platform.

like image 23
Brendan Burns Avatar answered Nov 15 '22 09:11

Brendan Burns