Core Cluster
The Core Cluster resource manages and orchestrates Kubernetes Cluster Control Plane and runs on the Management Cluster. It ensures that the Kubernetes Cluster Control Planes are set up correctly to meet the requirements of Cennso Network Functions, communicate efficiently, and provide the necessary infrastructure for the Network Solution.
Key features:
- Core Cluster orchestration: Manages the configuration and operations of nodes within a Core Cluster, ensuring they are ready to support Cennso Network Functions.
- Secure communication: Provides and manages secure communication between nodes within a Core Cluster to maintain the integrity and reliability of the network.
- Operational coordination: Ensures the nodes are synchronised and function together to meet the demands of the remote cluster's network solution.
- Registry credentials management: Ensures that Cennso registry credentials are available on all Core Cluster namespaces once created.
Configuration
You can create and configure a Core Cluster using one of the following methods:
- Go to ☰ → Cennso Management → Core Clusters and click Create.
- Choose Cennso Basic composition and select its version. Click Select.
- In the Metadata tab, provide a Name for the Core Cluster. This name must be unique.
- Optionally, go to the Specification tab, for example to enable High availability.
- Click Create to finalise the setup.
- Attach nodes to your Core Cluster and wait for its status to become Ready.
Open your terminal or command-line interface (CLI).
Apply the following Core Cluster configuration using kubectl:
bashThis composition also uses optional fields. Refer to the Core Cluster CRD for more details.
Verify that the configuration is successfully applied by checking the status of the Core Cluster resource:
bash
High availability
High availability (HA) for the Core Cluster ensures a resilient and robust Control Plane capable of handling failures with minimal disruption. By enabling HA, the Core Cluster is designed to maintain continuous operation through fault-tolerant mechanisms, providing redundancy and seamless failover. This setup minimises downtime and enhances reliability, allowing your workloads to remain unaffected even in challenging scenarios.
By default, high availability is disabled and the Core Cluster runs in the non-redundant setup, which is suitable for testing and development. For a production-ready setup, it is recommended to use HA.
You can enable HA for the Core Cluster in the Specification tab during the creation process. If you are using CLI, set spec.clusterController.compositionRef to clustercontroller-ha.
Enabling it runs the Core Cluster Control Plane and etcd pods in three replicas. It evenly distributes replicas across zones and nodes, reducing the impact of zone or node failures and enhancing redundancy.
High availability of cluster API endpoint
While the high availability (HA) mode of the Core Cluster ensures the resilience of Control Plane cluster components, it is also possible to add more API endpoints, which allows for zone distribution.
By default, a cluster is enabled with one external IP for API access. You can enable and configure additional load balancers in the Specification tab during the creation process. If you are using CLI, set spec.service.additionalLoadBalancers with their configuration. It works only with a HA Core Cluster.
The above example creates two additional services (type: LoadBalancer), where the second has an example.zone.activation: a annotation.
If you add or modify load balancers after creating a Core Cluster, you must follow a node upgrade instruction to refresh the certificate on the nodes.
Also, it is necessary to regenerate the join token for nodes. To do so, remove jointokenrequests.k0smotron.io with the name that has the cluster name as a prefix, and it will be regenerated.
If you want to use the additional Load Balancers by nodes, you must also change the cluster external address to DNS record. To do so, follow the customise cluster API endpoint instruction.
Customise cluster API endpoint
By default, the cluster address points to the primary load balancer IP address. It is possible to customise it to point to another address, for example DNS record.
You can configure the external address in the Specification tab during the creation process. If you are using CLI, set spec.externalAddress with the desired address.
If you change to a DNS record, you must create it manually and point to the IPs of the Core Cluster load balancers. You can find them in the XClusterController resource:
Also, you will find there the cluster's current hostname.
If you are upgrading the Core Cluster with a new API endpoint address, you must also adjust all connected nodes' configuration:
Connect to the node.
Stop the
k0sservice.bashEdit the external address in
/var/lib/k0s/kubelet.conf. It is stored in the []clusters.cluster.server field.Start the
k0sservice.bash
Also, it is necessary to regenerate the join token for nodes. To do so, remove jointokenrequests.k0smotron.io with the name that has the cluster name as a prefix, and it will be regenerated.
Core Cluster upgrade
For high availability (HA) setups, the upgrade of the control plane is designed to ensure zero downtime for workloads. During the upgrade, the Core Cluster orchestrates a rolling upgrade of its components. Each instance of the Core Cluster and associated storage replicas are upgraded sequentially, ensuring that no single point of failure impacts the workloads. This approach guarantees continuous availability and operational stability throughout the upgrade process.
Upgrade the Core Cluster version
Follow these steps to upgrade the Core Cluster version on the Management Cluster:
- In Cennso Management Console, go to ☰ → Cennso Management → Core Clusters.
- Choose the Core Cluster to upgrade.
- Click Edit.
- Choose the desired Version using the dropdown menu in the Composition tab.
- Click Update to confirm your changes.
- When all Core Cluster replicas are upgraded, proceed with a node upgrade.
Read more
For more details on Core Cluster, see the documentation for the related resources:
- CoreCluster CRD – detailed descriptions of the available Core Cluster configuration parameters.
- ClusterController CRD – detailed descriptions of the underlying ClusterController resource.
- CennsoDeployment CRD – detailed descriptions of the underlying CennsoDeployment resource.