CloudEphemeral node management is moving from Machine Controller Manager (MCM) to Cluster API (CAPI). Existing NodeGroups continue to use MCM, while new ones are created with CAPI by default. For migrating existing groups, see How to migrate node groups to Cluster API (CAPI).
Applying changes
Deckhouse Platform does not recreate existing Machine objects when configuration parameters change. Node recreation occurs only when:
- NodeGroup section parameters change.
- YandexInstanceClass parameters change.
This behavior helps prevent unnecessary operations and node idling, but it means you must manually recreate VMs if needed.
If you change the provider settings in the cloud-provider-yandex ModuleConfig (for example, the provider parameters, the layout, or the subnets), run the following command to apply the changes:
dhctl converge
This command reconciles the cluster state with the configuration defined in the resources.
Changing networkType does not recreate CloudEphemeral nodes
In clusters that use Machine Controller Manager (MCM), changing the networkType parameter in a YandexInstanceClass resource does not trigger automatic recreation of existing CloudEphemeral nodes. Although the MachineClass is updated, the network acceleration type of existing virtual machines in Yandex Cloud remains unchanged.
Deckhouse Platform intentionally does not take the networkType parameter into account when determining whether CloudEphemeral nodes should be recreated in MCM. If it did, updating Deckhouse Platform would recreate CloudEphemeral nodes in all clusters where networkType is specified, even if its value had not changed.
In Cluster API, the networkType parameter is taken into account when determining whether nodes should be recreated, so changing it automatically triggers node recreation. New CloudEphemeral NodeGroups in Yandex Cloud use Cluster API by default.
If you changed networkType in an MCM-based cluster and want the new value to apply to existing CloudEphemeral nodes, recreate them manually — instructions in the documentation.
Integrating manually created VMs
Deckhouse Platform allows you to connect existing VMs in Yandex Cloud to the Kubernetes cluster as nodes. These nodes are called CloudStatic and they are not directly managed by the node-manager module but can still be used in the cluster.
To manually connect a VM as a CloudStatic node, follow these steps:
-
Retrieve the current
nodeNetworkCIDRvalue from the cluster:d8 k get mc cloud-provider-yandex -o jsonpath='{.spec.settings.nodes.parameters.nodeNetworkCIDR}{"\n"}'Expected output:
192.168.12.0/24Copy this value and use it in the VM metadata as
value. -
Set the
node-network-cidrparameter in the VM metadata:key: node-network-cidr value: <NODE_NETWORK_CIDR>The
node-network-cidrparameter must match the value of thenodeNetworkCIDRparameter in the ModuleConfig.
Replacing the OS image
The imageID parameter of YandexInstanceClass defines the image for CloudEphemeral nodes. With a ModuleConfig-based provider configuration, this parameter also defines the image for CloudPermanent nodes and master nodes.
With a YandexClusterConfiguration-based configuration, the image for CloudPermanent nodes and master nodes is set by imageID in nodeGroups[].instanceClass and masterNodeGroup.instanceClass, respectively.
The replacement procedure is described in “How do I replace the OS image in a cloud cluster?”.