This message was deleted.
# rke2
a
This message was deleted.
c
The ingress needs 80 and 443 for anything you want to publish out of the cluster. The control-plane wants 9345 and 6443, but those are only used when bootstrapping new nodes into the cluster.
👍 1
r
If you've got control of your DNS I found it easier to just create a hostname with multiple A records for each control plane node and add them as they were ready and not messing with a load balancer.
c
yeah, that is usually my recommendation as well
m
Oh interesting - so just create DNS records pointing directly at the nodes in order of node priority or something? Or did you create a separate subdomain for each node?
And if I go that route, what would I put in the kubeconfig file for server?
r
You'd put the new DNS hostname in the kubeconfig file.
You can't do priority, it will round robin.
m
Okay, so just one hostname/subdomain. Thanks for your help!
w
Great tip! I don't know why I didn't think of that. So easy for my dev nodes.
b
it will round robin.
i am curious how this works. if we point it to a specific node, then the traffic will all go to the api server on that node?
c
The control-plane load balancer is only used by agents when joining the cluster, after that they use an internal load-balancer to communicate with the servers.
So if you point it at one node, yes that one node would always need to be available for new nodes to join the cluster.
🙏 1
👍 1