[virtual-kubelet] reflect pod RuntimeClass #2887
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the support for pod RuntimeClass reflection.
The RuntimeClass (
.spec.runtimeClassName
field) is reflected from the local pod to the remote one.If you are using the Liqo RuntimeClass, you cannot specify the RuntimeClass name as the field is already used. To overcome this problem, you can annotate the pod with
liqo.io/remote-runtime-class-name: <MY_RUNTIMECLASS_NAME>
.It is also possible to enforce a remote RuntimeClass to all pods scheduled on a virtual node, by specifying it in the OffladingPatch of the virtualnode (
.spec.offloadingPatch.runtimeClassName
).If you are using liqoctl to create the virtual node, you can leverage the
--runtime-class-name
flag.If these options are used in combination, the following priority (from higher to lower priority) will be used to determine the remote RuntimeClass:
liqo.io/remote-runtime-class-name
)..spec.runtimeClassName
). It is ignored if set toliqo
..spec.offloadingPatch.runtimeClassName
).