canonical / cluster-api-bootstrap-provider-microk8s

This project offers a cluster API bootstrap provider controller that manages the node provision of a MicroK8s cluster.
https://microk8s.io
21 stars 14 forks source link

Feature-flag the port-remap hack. Ensure the hack works for workers #15

Closed ktsakalozos closed 2 years ago

ktsakalozos commented 2 years ago

The default ports of cluster agent and dqlite are blocked by security groups and as a workaround we reuse etcd and calico ports that are open in the infra providers. Cluster agent port (25000) and dqlite port (19001) set to use calico port 179 and etcd port 2380 respectively. We introduce a portCompatibilityRemap that when set to false uses the default MicroK8s ports.

We also set the workers to use the LB endpoint to reach the control plane nodes. This was we do not need to reconfigure them as we add/remove control plane nodes.