famous-flag-15098
10/12/2022, 3:38 PMbulky-sunset-52084
10/13/2022, 1:39 AMNow I would like to turn the original master into an agent node, and then turn two of the existing agents into masters. How should I approach this?The easiest and best way is just to rebuild the cluster. ideally all of your apps are in manifest files you can just reapply so you wont really lose anything doing it this way. One way you could try is delete and readd nodes as new roles so something like: • Delete the agent nodes that need to be masters from the cluster etcd with
kubectl delete node
• kill and uninstall k3s with the /usr/local/bin/k3s-killall.sh
and /usr/local/bin/k3s-uninstall.sh
• Reinstall the k3s server on both of the nodes and use the K3S_URL
to point to your existing 2 other masters - at this point you should have 4 master nodes.
• follow step 1 and 2 again on the server you want to turn into an agent
• install k3s agent and use any master node (or better yet a loadbalancer) for the K3S_URL
.famous-flag-15098
10/13/2022, 1:49 PM