From 8e4d3e645b91a9fba6eec6c6c294cfd189c2dca1 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 15 Dec 2020 11:10:33 -0800 Subject: [PATCH] Restore legacy master role for etcd nodes Signed-off-by: Brad Davidson --- pkg/etcd/controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/etcd/controller.go b/pkg/etcd/controller.go index 5fbacfa8bf..7e417efc44 100644 --- a/pkg/etcd/controller.go +++ b/pkg/etcd/controller.go @@ -13,6 +13,7 @@ import ( const ( nodeID = "etcd.k3s.cattle.io/node-name" nodeAddress = "etcd.k3s.cattle.io/node-address" + master = "node-role.kubernetes.io/master" controlPlane = "node-role.kubernetes.io/control-plane" etcdRole = "node-role.kubernetes.io/etcd" ) @@ -69,6 +70,7 @@ func (h *handler) handleSelf(node *v1.Node) (*v1.Node, error) { node.Annotations[nodeID] = h.etcd.name node.Annotations[nodeAddress] = h.etcd.address node.Labels[etcdRole] = "true" + node.Labels[master] = "true" node.Labels[controlPlane] = "true" return h.nodeController.Update(node)