Sync to host from virtual
Read more about how syncing works before deciding which resources to sync from the tenant cluster to the control plane cluster.
vCluster syncs specific Kubernetes resources from the tenant cluster to the control plane cluster. These resources are expected to be created and updated within the tenant cluster. In addition to standard Kubernetes resources, custom resources can also be synced if configured.
Enabled by default
The following resources are synced by default.
Disabled by default
The following resources are not synced by default. You can explicitly enable them in your vcluster.yaml configuration.
- CustomResources
- Ingresses
- Gateway API
- NetworkPolicies
- PersistentVolumes
- VolumeSnapshots
- StorageClasses
- ServiceAccounts
- PodDisruptionBudgets
- PriorityClasses
- Namespaces
Added by the tenant cluster
When syncing objects from the tenant cluster to the control plane cluster, the tenant cluster adds management labels to the control plane cluster-side objects.
In the default (single-namespace) mode, the following labels are added:
releasevcluster.loft.sh/namespacevcluster.loft.sh/managed-byvcluster.loft.sh/controlled-by
If sync.toHost.namespaces.enabled is true (multi-namespace sync), the tenant cluster does not add the release label. Only the vcluster.loft.sh/* labels are applied.
Bidirectional syncing
For all resources synced from the tenant cluster to the control plane cluster, metadata.labels and metadata.annotations are synchronized in both directions.
This means changes made in the tenant cluster are reflected in the control plane cluster, and changes made in the control plane cluster are also reflected in the tenant cluster.
Any labels prefixed with vcluster.loft.sh on the control plane cluster resources should not be updated by the user. These labels are managed by the vCluster control plane to track resources and prevent conflicts.
Additional fields that support bidirectional sync
All metadata.labels and metadata.annotations are bidirectionally synced for resources synced from the tenant cluster to the control plane cluster.
In addition to these fields, vCluster also supports bidirectional syncing for the following resource-specific fields:
| Resource | Fields |
|---|---|
| Pods |
|
| Secrets |
|
| ConfigMaps |
|
| Services |
|
| Ingresses |
|
| Gateway API |
|
| PersistentVolumes |
|
| StorageClass |
|
Config reference
toHost object
Configure resources to sync from the virtual cluster to the host cluster.
toHost object pods object
Pods defines if pods created within the virtual cluster should get synced to the host cluster.
pods object enabled boolean true
Enabled defines if pod syncing should be enabled.
enabled boolean true translateImage object {}
TranslateImage maps an image to another image that should be used instead. For example this can be used to rewrite
a certain image that is used within the virtual cluster to be another image on the host cluster
translateImage object {} enforceTolerations string[] []
EnforceTolerations will add the specified tolerations to all pods synced by the virtual cluster.
enforceTolerations string[] [] useSecretsForSATokens boolean false
UseSecretsForSATokens will use secrets to save the generated service account tokens by virtual cluster instead of using a
pod annotation.
useSecretsForSATokens boolean false runtimeClassName string
RuntimeClassName is the runtime class to set for synced pods.
runtimeClassName string priorityClassName string
PriorityClassName is the priority class to set for synced pods.
priorityClassName string rewriteHosts object
RewriteHosts is a special option needed to rewrite statefulset containers to allow the correct FQDN. virtual cluster will add
a small container to each stateful set pod that will initially rewrite the /etc/hosts file to match the FQDN expected by
the virtual cluster.
rewriteHosts object enabled boolean true
Enabled specifies if rewriting stateful set pods should be enabled.
enabled boolean true initContainer object
InitContainer holds extra options for the init container used by vCluster to rewrite the FQDN for stateful set pods.
initContainer object image object
Image is the image virtual cluster should use to rewrite this FQDN.
image object registry string mirror.gcr.io
Registry is the registry of the container image, e.g. my-registry.com or ghcr.io. This setting can be globally
overridden via the controlPlane.advanced.defaultImageRegistry option. Empty means docker hub.
registry string mirror.gcr.io repository string library/alpine
Repository is the repository of the container image, e.g. my-repo/my-image
repository string library/alpine tag string 3.20
Tag is the tag of the container image, and is the default version.
tag string 3.20 resources object
Resources are the resources that should be assigned to the init container for each stateful set init container.
resources object limits object map[cpu:30m memory:64Mi]
Limits are resource limits for the container
limits object map[cpu:30m memory:64Mi] requests object map[cpu:30m memory:64Mi]
Requests are minimal resources that will be consumed by the container
requests object map[cpu:30m memory:64Mi] 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 hybridScheduling object
HybridScheduling is used to enable and configure hybrid scheduling for pods in the virtual cluster.
hybridScheduling object enabled boolean false
Enabled specifies if hybrid scheduling is enabled.
enabled boolean false hostSchedulers string[] []
HostSchedulers is a list of schedulers that are deployed on the host cluster.
hostSchedulers string[] [] secrets object
Secrets defines if secrets created within the virtual cluster should get synced to the host cluster.
secrets object enabled boolean true
Enabled defines if this option should be enabled.
enabled boolean true all boolean false
All defines if all resources of that type should get synced or only the necessary ones that are needed.
all 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 created within the virtual cluster should get synced to the host cluster.
configMaps object enabled boolean true
Enabled defines if this option should be enabled.
enabled boolean true all boolean false
All defines if all resources of that type should get synced or only the necessary ones that are needed.
all 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 ingresses object
Ingresses defines if ingresses created within the virtual cluster should get synced to the host cluster.
ingresses 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 gatewayApi object
GatewayAPI defines Gateway API resources created within the tenant cluster that should get synced to the control plane cluster.
Setting enabled: true turns on Gateway and HTTPRoute sync, imports control plane cluster GatewayClasses so tenant Gateways can resolve them, and serves tenant ReferenceGrants for validation; TLSRoutes and BackendTLSPolicies must be enabled individually.
gatewayApi 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 httpRoutes object
HTTPRoutes configures HTTPRoute sync to the control plane cluster.
httpRoutes 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 configures tenant-created Gateway sync to the control plane cluster.
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 tlsRoutes object
TLSRoutes configures TLSRoute sync to the control plane cluster.
tlsRoutes 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 backendTLSPolicies object
BackendTLSPolicies configures BackendTLSPolicy sync to the control plane cluster.
backendTLSPolicies 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 referenceGrants object
ReferenceGrants configures ReferenceGrant sync to the control plane cluster. Enabled may be "auto", "true", or "false".
In auto mode grants follow route sync and are validated within the tenant cluster; they sync to the control plane cluster only when namespace sync is also enabled.
referenceGrants 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 services object
Services defines if services created within the virtual cluster should get synced to the host cluster.
services 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 endpoints object
Endpoints defines if endpoints created within the virtual cluster should get synced to the host cluster.
endpoints 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 endpointSlices object
EndpointSlices defines if endpointslices created within the virtual cluster should get synced to the host cluster.
endpointSlices 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 networkPolicies object
NetworkPolicies defines if network policies created within the virtual cluster should get synced to the host cluster.
networkPolicies 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 persistentVolumeClaims object
PersistentVolumeClaims defines if persistent volume claims created within the virtual cluster should get synced to the host cluster.
persistentVolumeClaims 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 persistentVolumes object
PersistentVolumes defines if persistent volumes created within the virtual cluster should get synced to the host cluster.
persistentVolumes 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 volumeSnapshots object
VolumeSnapshots defines if volume snapshots created within the virtual cluster should get synced to the host cluster.
volumeSnapshots 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 volumeSnapshotContents object
VolumeSnapshotContents defines if volume snapshot contents created within the virtual cluster should get synced to the host cluster.
volumeSnapshotContents 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 created within the virtual cluster should get synced to the host cluster.
storageClasses 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 serviceAccounts object
ServiceAccounts defines if service accounts created within the virtual cluster should get synced to the host cluster.
serviceAccounts 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 podDisruptionBudgets object
PodDisruptionBudgets defines if pod disruption budgets created within the virtual cluster should get synced to the host cluster.
podDisruptionBudgets 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 created within the virtual cluster should get synced to the host cluster.
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 customResources {key: object}
CustomResources defines what custom resources should get synced from the virtual cluster to the host cluster. vCluster will copy the definition automatically from host cluster to virtual cluster on startup.
vCluster will also automatically add any required RBAC permissions to the vCluster role for this to work.
customResources {key: object} enabled required boolean
Enabled defines if this option should be enabled.
enabled required boolean scope string
Scope defines the scope of the resource. If undefined, will use Namespaced. Currently only Namespaced is supported.
scope 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 namespaces object
Namespaces defines if namespaces created within the virtual cluster should get synced to the host cluster.
namespaces object enabled required boolean false
Enabled defines if this option should be enabled.
enabled required 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 mappingsOnly boolean false
MappingsOnly defines if creation of namespaces not matched by mappings should be allowed.
mappingsOnly boolean false extraLabels object
ExtraLabels are additional labels to add to the namespace in the host cluster.
extraLabels object resourceClaims object
ResourceClaim defines if resource claims created within the virtual cluster should get synced to the host cluster.
resourceClaims 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 resourceClaimTemplates object
ResourceClaimTemplates defines if resourceClaimTemplates created within the virtual cluster should get synced to the host cluster.
resourceClaimTemplates 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