How does RKE2 connect to the API server?

This article is a mirror of https://jsty.tistory.com/326
There may be updates to the original article.




Kubernetes' kubelet communicates with kube-apiserver. So, if there are multiple control plane nodes, need to create a Domain or VIP and implement it so that it can be connected to a live Control Plane node through a Load Balancer.

However, I installed RKE2 as Elemental, but I had a problem. This is because there was no way to set up such a Load Balancer.

(If you just install RKE2, you can set the server address, but if you provision with elemental and rancher, it will be configured automatically)

So if the first provisioned control plane node dies, how do other nodes communicate? I asked RKE2 Slack.
> https://rancher-users.slack.com/archives/C3ASABBD1/p1666656986435839









According to the above, even if Rancher dies, the provisioned cluster operates alone, and after Node Join, the address of the control node becomes caching for all nodes, so that the load balances itself.
And, if the IP of the control plane changes, the cache also seems to change.








댓글

이 블로그의 인기 게시물

Fix "go get" error "invalid char ':'" when using custom-port.

EJBCA-CE Docker with HSM on Kubernetes

EJBCA: "no such algorithm" error when using PKCS11.