JuanIsFree
JuanIsFree

Reputation: 370

How do you replace a Kubernetes Master node on AWS?

How do I replace a downed master node? In particular, how do you replace a node on AWS if you are using the kubernetes tools?

If I restart the node, it doesn't start correctly, if I clone the node, it definitely does not.

Upvotes: 2

Views: 1949

Answers (2)

Christian Grabowski
Christian Grabowski

Reputation: 2892

You'll have to connect the new master to the current etcd cluster, or create a new etcd cluster from a snapshot of the old one, in order to preserve state of the cluster. Aside from that, you have to ensure that the nodes point to the new master's IP address. I also suggest looking at HA masters if you are running a version greater than 1.0.X http://kubernetes.io/v1.1/docs/admin/high-availability.html.

Upvotes: 1

Tim Hockin
Tim Hockin

Reputation: 3662

If replacing it comes up with a new IP, you'll have to update all your nodes, which know how to reach it by IP or by internal DNS (in flags).

Upvotes: 0

Related Questions