https://rancher.com/ logo
Title
a

adamant-waiter-35487

10/05/2022, 8:30 AM
In k3s HA with embedded db, is it possible to have server and agent on the same node? The quick start command (
curl -sfL <https://get.k3s.io> | sh -
) installs both server and agent, but the tutorial on embedded ha ask us to start server on 3 nodes, and then join agent later. I am not sure if this means I need 3 nodes just for ha control plan, and need more nodes to behave as agent (worker) node?
c

creamy-pencil-82913

10/05/2022, 9:45 AM
you only need one node, although one node is of course not HA.
No, you can’t install server and agent on the same node. The server also runs the agent components, as shown here: https://k3s.io/#:~:text=how%20it%20works If you’re interested in HA, you would usually have 3 or 5 servers, and then some number of agents, assuming you don’t want your workload to also run on the server and have tainted them to prevent that from occurring. If you are OK with the workload on the servers, then you don’t need any agents.
a

adamant-waiter-35487

10/05/2022, 9:58 AM
I see, that explains it pretty clear, thank you