Define the Control Plane Endpoint for your cluster
A control plane should have three, five, or seven nodes, so it can remain available if one, two, or three nodes fail. A control plane with one node should not be used in production.
In addition, the control plane should have an endpoint that remains available if some nodes fail.
-------- cp1.example.com:6443 | lb.example.com:6443 ---------- cp2.example.com:6443 | -------- cp3.example.com:6443
In this example, the control plane endpoint host is
lb.example.com, and the control plane endpoint port is
6443. The control plane nodes are
cp3.example.com. The port of each API server is
External load balancer
It is recommended that an external load balancer be the control plane endpoint. To distribute request load among the control plane machines, configure the load balancer to send requests to all the control plane machines. Configure the load balancer to send requests only to control plane machines that are responding to API requests.
Built-in virtual IP
If an external load balancer is not available, use the built-in virtual IP. The virtual IP is not a load balancer; it does not distribute request load among the control plane machines. However, if the machine receiving requests does not respond to them, the virtual IP automatically moves to another machine.
Single-Node control plane
A control plane with one node can use its single node as the endpoint, so you will not require an external load balancer, or a the built-in virtual IP. However, do not use a single-node control plane configuration in production, as it is not possible to upgrade the control plane if you only have one node. This is due to the fact that CAPI does not perform in-situ upgrades, instead, it replaces machines. If you want to upgrade your cluster, use the default
–control-plane-replicas setting of 3.
Modify Control Plane Audit logs settings using the information contained in the page Configuring the Control Plane.
When the API server endpoints are defined, you can create the cluster.
Be aware of these limitations in the current release of DKP.
The control plane endpoint port is also used as the API server port on each control plane machine. The default port is 6443. Before you create the cluster, ensure the port is available for use on each control plane machine.