@@ -46,7 +46,7 @@ When StorageClass sync is enabled, vCluster uses selector criteria to control wh
46
46
47
47
**Unified selector control**: The same selector determines which StorageClass resources are imported into the virtual cluster and which PersistentVolume and PersistentVolumeClaim resources can sync to the host cluster. If a PersistentVolumeClaim references a StorageClass that was not synced to the virtual cluster, that PersistentVolumeClaim cannot sync to the host cluster.
48
48
49
- ## Using selectors to filter StorageClasses
49
+ ## Use selectors to filter StorageClasses
50
50
51
51
Selectors provide precise control over which StorageClass resources get synced from the host cluster. vCluster supports two types of selector criteria that follow standard Kubernetes label selector syntax.
52
52
@@ -63,9 +63,9 @@ All specified label conditions must match for a StorageClass to be included in t
63
63
64
64
For more details on label selectors, refer to the [Kubernetes documentation on label selectors](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#resources-that-support-set-based-requirements).
65
65
66
- ## Sync behavior and considerations
66
+ ## Sync behavior considerations
67
67
68
- ### Resource lifecycle and validation
68
+ ### Resource lifecycle
69
69
70
70
Synced StorageClass resources function like any other Kubernetes resource in the virtual cluster. You can view them with `kubectl get storageclass` and reference them in PersistentVolumeClaim specifications using the storageClassName field.
71
71
@@ -83,7 +83,7 @@ When a StorageClass fails to meet the selector criteria during evaluation, vClus
83
83
84
84
The error output appears as a Kubernetes event that you can view using `kubectl describe`.
85
85
86
- ### Orphaned resources and cleanup
86
+ ### Remove orphaned resources
87
87
88
88
When vCluster removes a synced StorageClass from the virtual cluster due to selector changes or deletion from the host cluster, any PersistentVolume and PersistentVolumeClaim resources that reference it remain in the virtual cluster. These orphaned resources stop receiving updates but vCluster does not automatically delete them to prevent unintended data loss. To remove these orphaned resources, you must delete them manually in the host cluster.
89
89
@@ -93,7 +93,7 @@ When vCluster removes a synced StorageClass from the virtual cluster due to sele
93
93
94
94
To sync only StorageClass resources labeled `environment: development`:
95
95
96
- ```yaml title = " Filter example for storageClass "
96
+ ```yaml title = " Filter example for StorageClass "
97
97
sync:
98
98
toHost:
99
99
persistentVolumes:
@@ -112,7 +112,7 @@ sync:
112
112
113
113
To sync StorageClass resources where the label `kubernetes.io/storage.class` is either `network-nas` or `fast-ssd`:
114
114
115
- ```yaml title = " Flexible filter example for storageClass "
115
+ ```yaml title = " Flexible filter example for StorageClass "
116
116
sync:
117
117
toHost:
118
118
persistentVolumes:
@@ -135,7 +135,7 @@ sync:
135
135
136
136
The following configuration syncs StorageClass resources that match both label and expression criteria:
137
137
138
- ```yaml title = " Combined filter example for storageClass "
138
+ ```yaml title = " Combined filter example for StorageClass "
139
139
sync:
140
140
toHost:
141
141
persistentVolumes:
@@ -160,7 +160,7 @@ sync:
160
160
161
161
When a PersistentVolumeClaim resource references a StorageClass that doesn't match the selector criteria, the error output looks like this:
162
162
163
- ```bash title = " Error handling example for storageClass "
163
+ ```bash title = " Error handling example for StorageClass "
164
164
vcluster-virtual-cluster-1:~$ kubectl describe pvc my-pvc
165
165
Name: my-pvc
166
166
Namespace: default
0 commit comments