Skip to content

Conversation

@hardcoretime
Copy link
Contributor

@hardcoretime hardcoretime commented Jan 14, 2026

Description

A virtual machine can now be migrated to a particular node using the NodeSelector option in the virtual machine operation.

Why do we need it, and what problem does it solve?

This is required to enhance the user experience with virtual machine migration.

What is the expected result?

A virtual machine can be migrated to a particular node using defined labels.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: feature
summary: "A virtual machine can now be migrated to a particular node using the NodeSelector option in the virtual machine operation."

@hardcoretime hardcoretime added this to the v1.5.0 milestone Jan 14, 2026
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch 6 times, most recently from 065512f to cca7297 Compare January 19, 2026 16:42
@hardcoretime hardcoretime marked this pull request as ready for review January 19, 2026 16:58
z9r5
z9r5 previously approved these changes Jan 20, 2026
yaroslavborbat
yaroslavborbat previously approved these changes Jan 21, 2026
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch 4 times, most recently from 6fe45ee to 1f02fd0 Compare January 21, 2026 23:16
denmaloyreb
denmaloyreb previously approved these changes Jan 26, 2026
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch 2 times, most recently from 21f1703 to fd9349f Compare January 26, 2026 11:21
Roman Sysoev added 20 commits January 26, 2026 16:31
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
- add default Alpine-BIOS virtual disk
- set the value to '20%' as the default in NewMinimalVM

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
- replace nodeSelector with targetNodeName in d8 v migrate
- target migration is EE feature

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime force-pushed the feat/vm/add-target-migration branch from 5a3758a to 6eabe39 Compare January 26, 2026 13:31
@hardcoretime hardcoretime marked this pull request as ready for review January 26, 2026 13:45
description: |-
Селектор меток узла для планирования виртуальной машины на узел. Должен соответствовать меткам целевого узла.
[По аналогии](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/) с параметром подов `spec.nodeSelector` в Kubernetes.
Примечание: поле `nodeSelector` недоступно в версии Community Edition.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Примечание: поле `nodeSelector` недоступно в версии Community Edition.
> Поле `nodeSelector` недоступно в версии Community Edition.

description: |-
Node selector for scheduling the VM onto a node. Must match the target node's labels.
[Same](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/) as the Pod `spec.nodeSelector` field in Kubernetes.
Note: the `nodeSelector` field is not available in the Community Edition version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note: the `nodeSelector` field is not available in the Community Edition version.
> The `nodeSelector` field is not available in the Community Edition version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants