The module lifecycle stage: Preview
How to configure a LoadBalancer?
To configure a Service of the LoadBalancer type, add the following annotations to the Service manifest:
metadata:
annotations:
dynamix.cpi.flant.com/internal-network-name: <internal_name>
dynamix.cpi.flant.com/external-network-name: <external_name>
Both annotations are required:
dynamix.cpi.flant.com/internal-network-name— the name of the internal network in Basis Dynamixdynamix.cpi.flant.com/external-network-name— the name of the external network in Basis Dynamix
The terms “internal network” and “external network” are used in the context of Basis Dynamix. The external network does not have to be public and may use private IP addresses.
If one of the annotations is not specified, cloud-controller-manager will fail to process the Service.
Other ways to handle inbound traffic to the cluster, such as an external load balancer or MetalLB, are described in the Load balancing section.
How is the disk placement chosen?
The disk placement is defined by the storage policy. Its name is set in the following parameters:
storagePolicyat the root of DynamixClusterConfiguration: The storage policy for all virtual machines in the cluster.storagePolicyinmasterNodeGroup.instanceClass,nodeGroups[].instanceClass, or DynamixInstanceClass: The storage policy for a single node group instead of the cluster-wide one.
A storage policy sets the storage endpoint and pool pairs available to the account, as well as an IOPS limit. Basis Dynamix chooses the exact placement of a disk within the policy.
Which nodes are recreated when the storage policy changes?
The storage policy of a disk is set when the virtual machine is created and doesn’t change for an existing machine. Therefore, when the storage policy changes, the module recreates nodes of the CloudEphemeral type:
- When
storagePolicychanges in a DynamixInstanceClass: The nodes of the groups that use this DynamixInstanceClass. - When
storagePolicychanges at the root of DynamixClusterConfiguration: The nodes of all groups, including groups with their own storage policy.
The module doesn’t recreate master nodes and the nodes of the nodeGroups groups. A new storage policy applies to such a node only when the node is created again.
Which StorageClasses does the module create?
The module creates a StorageClass for every storage policy that is available to the cluster account and has the ENABLED status.
The module derives the StorageClass name from the storage policy name:
- Converts letters to lowercase
- Replaces spaces with
- - Removes the characters that a Kubernetes object name can’t contain, including
_
For example, for the storage_policy01 storage policy, the module creates the storagepolicy01 StorageClass. If the names of several storage policies result in the same StorageClass name, the module creates the StorageClass for the policy whose name comes first when sorted.
To prevent the module from creating some StorageClasses, list their names or regular expressions in the storageClass.exclude parameter.