Sync from host to virtual
Read more about how syncing works before deciding which resources to sync from the control plane cluster to the tenant cluster.
vCluster can sync certain resources from the control plane cluster to make them available inside the tenant cluster, but when these resources are synced, they are only synced in read-only mode. No changes to the resource in the tenant cluster syncs back to the control plane cluster as the resources are shared across the control plane cluster.
A good example would be nodes, which are nice to view inside the tenant cluster and can be also used to enabled certain features such as scheduling inside the vCluster, but you wouldn't want your tenant cluster to change the node itself. Another benefit of only syncing from the control plane cluster is that vCluster itself only requires read-only RBAC permissions.
vCluster also lets you sync custom resources with the custom resource definitions syncer
There are a couple of labels that are created on the control plane cluster by vCluster that never get synced to the tenant cluster resource. These labels are:
release(Label is needed to avoid conflicts with the vCluster pods themselves).vcluster.loft.sh/namespacevcluster.loft.sh/managed-byvcluster.loft.sh/controlled-byvcluster.loft.sh/ns-label-*These labels are added as management labels when synching from the tenant cluster to the control plane cluster, but skipped when syncing from the control plane cluster to the tenant cluster to prevent sync loops.
Resource creation behaviorβ
Cluster-scoped resourcesβ
The following resources are not created during sync if they donβt already exist in the tenant cluster:
The following resouces are created in the tenant cluster as read-only if they don't already exist during the sync:
- Nodes
- IngressClasses
- Gateways and GatewayClasses
- StorageClasses
- Cluster-scoped CustomResources
Namespaced resourcesβ
Namespaced resources are automatically created in the tenant cluster if they do not already exist. Before synchronization occurs, the mapping between the control plane cluster source namespace name and the corresponding tenant cluster target namespace name must be defined. This applies to:
- Events
- ConfigMaps
- Secrets
- Namespace-scoped CustomResources
For CSIStorageCapacities, synchronization occurs only when a corresponding mapping exists between the physical StorageClass name in the control plane cluster and the StorageClass name in the tenant cluster and the capacity aligns with the associated physical node:
Enabled by defaultβ
Disabled by defaultβ
- CustomResources
- Nodes
- IngressClasses
- Gateways and GatewayClasses
- StorageClasses
- CSINodes
- CSIDrivers
- CSIStorageCapacities
- ConfigMaps
- Secrets
No bi-directional syncingβ
Since syncing resources from the control plane cluster is in read only mode and changes in the tenant cluster do not get applied to the resource in the control plane cluster, bi-directional syncing does not exist across these resources.
Config referenceβ
fromHost object β
Configure what resources vCluster should sync from the host cluster to the virtual cluster.
fromHost object βnodes object β
Nodes defines if nodes should get synced from the host cluster to the virtual cluster, but not back.
nodes object βenabled boolean false β
Enabled specifies if syncing real nodes should be enabled. If this is disabled, vCluster will create fake nodes instead.
enabled boolean false βsyncBackChanges boolean false β
SyncBackChanges enables syncing labels and taints from the virtual cluster to the host cluster. If this is enabled someone within the virtual cluster will be able to change the labels and taints of the host cluster node.
syncBackChanges boolean false βclearImageStatus boolean false β
ClearImageStatus will erase the image status when syncing a node. This allows to hide images that are pulled by the node.
clearImageStatus boolean false βselector object β
Selector can be used to define more granular what nodes should get synced from the host cluster to the virtual cluster.
selector object βall boolean false β
All specifies if all nodes should get synced by vCluster from the host to the virtual cluster or only the ones where pods are assigned to.
all boolean false βlabels object {} β
Labels are the node labels used to sync nodes from host cluster to virtual cluster. This will also set the node selector when syncing a pod from virtual cluster to host cluster to the same value.
labels object {} βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βevents object β
Events defines if events should get synced from the host cluster to the virtual cluster, but not back.
events object βenabled boolean true β
Enabled defines if this option should be enabled.
enabled boolean true βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βingressClasses object β
IngressClasses defines if ingress classes should get synced from the host cluster to the virtual cluster, but not back.
ingressClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βgatewayClasses object β
GatewayClasses defines if gateway classes should get synced from the control plane cluster to the tenant cluster, but not back.
gatewayClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βgateways object β
Gateways defines if selected control plane Gateways should get synced from the control plane cluster to the tenant cluster, but not back.
gateways object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βselector object β
Selector defines the selector to use for the resource. If not set, all resources of that type will be synced.
selector object βmatchLabels object β
matchLabels object βmappings object β
Mappings define control plane Gateway namespace/name to tenant-facing namespace/name placement.
mappings object βbyName object {} β
ByName is a map of control-plane-object-namespace/control-plane-object-name: tenant-object-namespace/tenant-object-name.
There are several wildcards supported:
- To match all objects in a control plane namespace and sync them to a different namespace in the tenant cluster:
byName:
"foo/": "foo-in-virtual/"
- To match a specific object in the control plane namespace and sync it to the same namespace with the same name:
byName:
"foo/my-object": "foo/my-object"
- To match a specific object in the control plane namespace and sync it to the same namespace with a different name:
byName:
"foo/my-object": "foo/my-virtual-object"
- To match all objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"": "my-virtual-namespace/*"
- To match specific objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"/my-object": "my-virtual-namespace/my-object"
byName object {} βallowedRoutes object β
AllowedRoutes configures the tenant-facing allowedRoutes policy shown on imported Gateways and enforced for Routes.
allowedRoutes object βruntimeClasses object β
RuntimeClasses defines if runtime classes should get synced from the host cluster to the virtual cluster, but not back.
runtimeClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βpriorityClasses object β
PriorityClasses defines if priority classes classes should get synced from the host cluster to the virtual cluster, but not back.
priorityClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βstorageClasses object β
StorageClasses defines if storage classes should get synced from the host cluster to the virtual cluster, but not back. If auto, is automatically enabled when the virtual scheduler is enabled.
storageClasses object βenabled string|boolean auto β
Enabled defines if this option should be enabled.
enabled string|boolean auto βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βcsiNodes object β
CSINodes defines if csi nodes should get synced from the host cluster to the virtual cluster, but not back. If auto, is automatically enabled when the virtual scheduler is enabled.
csiNodes object βenabled string|boolean auto β
Enabled defines if this option should be enabled.
enabled string|boolean auto βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βcsiDrivers object β
CSIDrivers defines if csi drivers should get synced from the host cluster to the virtual cluster, but not back. If auto, is automatically enabled when the virtual scheduler is enabled.
csiDrivers object βenabled string|boolean auto β
Enabled defines if this option should be enabled.
enabled string|boolean auto βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βcsiStorageCapacities object β
CSIStorageCapacities defines if csi storage capacities should get synced from the host cluster to the virtual cluster, but not back. If auto, is automatically enabled when the virtual scheduler is enabled.
csiStorageCapacities object βenabled string|boolean auto β
Enabled defines if this option should be enabled.
enabled string|boolean auto βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βcustomResources {key: object} β
CustomResources defines what custom resources should get synced read-only to the virtual cluster from the host cluster. vCluster will automatically add any required RBAC to the vCluster cluster role.
customResources {key: object} βenabled required boolean β
Enabled defines if this option should be enabled.
enabled required boolean βscope required string β
Scope defines the scope of the resource
scope required string βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βmappings object β
Mappings for Namespace and Object
mappings object βbyName object β
ByName is a map of control-plane-object-namespace/control-plane-object-name: tenant-object-namespace/tenant-object-name.
There are several wildcards supported:
- To match all objects in a control plane namespace and sync them to a different namespace in the tenant cluster:
byName:
"foo/": "foo-in-virtual/"
- To match a specific object in the control plane namespace and sync it to the same namespace with the same name:
byName:
"foo/my-object": "foo/my-object"
- To match a specific object in the control plane namespace and sync it to the same namespace with a different name:
byName:
"foo/my-object": "foo/my-virtual-object"
- To match all objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"": "my-virtual-namespace/*"
- To match specific objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"/my-object": "my-virtual-namespace/my-object"
byName object βvolumeSnapshotClasses object β
VolumeSnapshotClasses defines if volume snapshot classes created within the virtual cluster should get synced to the host cluster.
volumeSnapshotClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βconfigMaps object β
ConfigMaps defines if config maps in the host should get synced to the virtual cluster.
configMaps object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βmappings object β
Mappings for Namespace and Object
mappings object βbyName object {} β
ByName is a map of control-plane-object-namespace/control-plane-object-name: tenant-object-namespace/tenant-object-name.
There are several wildcards supported:
- To match all objects in a control plane namespace and sync them to a different namespace in the tenant cluster:
byName:
"foo/": "foo-in-virtual/"
- To match a specific object in the control plane namespace and sync it to the same namespace with the same name:
byName:
"foo/my-object": "foo/my-object"
- To match a specific object in the control plane namespace and sync it to the same namespace with a different name:
byName:
"foo/my-object": "foo/my-virtual-object"
- To match all objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"": "my-virtual-namespace/*"
- To match specific objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"/my-object": "my-virtual-namespace/my-object"
byName object {} βsecrets object β
Secrets defines if secrets in the host should get synced to the virtual cluster.
secrets object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object βmappings object β
Mappings for Namespace and Object
mappings object βbyName object {} β
ByName is a map of control-plane-object-namespace/control-plane-object-name: tenant-object-namespace/tenant-object-name.
There are several wildcards supported:
- To match all objects in a control plane namespace and sync them to a different namespace in the tenant cluster:
byName:
"foo/": "foo-in-virtual/"
- To match a specific object in the control plane namespace and sync it to the same namespace with the same name:
byName:
"foo/my-object": "foo/my-object"
- To match a specific object in the control plane namespace and sync it to the same namespace with a different name:
byName:
"foo/my-object": "foo/my-virtual-object"
- To match all objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"": "my-virtual-namespace/*"
- To match specific objects in the vCluster namespace and sync them to a different namespace in the tenant cluster:
byName:
"/my-object": "my-virtual-namespace/my-object"
byName object {} βdeviceClasses object β
DeviceClasses defines if device classes in the host should get synced to the virtual cluster
deviceClasses object βenabled boolean false β
Enabled defines if this option should be enabled.
enabled boolean false βpatches object[] β
Patches patch the resource according to the provided specification.
patches object[] βpath required string β
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path required string βexpression string β
Expression transforms the value according to the given JavaScript expression.
expression string βreverseExpression string β
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression string βreference object β
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference object βapiVersion required string β
APIVersion is the apiVersion of the referenced object.
apiVersion required string βapiVersionPath string β
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath string βkind required string β
Kind is the kind of the referenced object.
kind required string βkindPath string β
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath string βnamePath string β
NamePath is the optional relative path to the reference name within the object.
namePath string βnamespacePath string β
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath string βlabels object β
Labels treats the path value as a labels selector.
labels object β