Skip to content

Commit e684ddb

Browse files
authored
Update storage-classes.mdx
1 parent 0531b63 commit e684ddb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

vcluster/configure/vcluster-yaml/sync/from-host/storage-classes.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ When StorageClass sync is enabled, vCluster uses selector criteria to control wh
4646

4747
**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.
4848

49-
## Using selectors to filter StorageClasses
49+
## Use selectors to filter StorageClasses
5050

5151
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.
5252

@@ -63,9 +63,9 @@ All specified label conditions must match for a StorageClass to be included in t
6363

6464
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).
6565

66-
## Sync behavior and considerations
66+
## Sync behavior considerations
6767

68-
### Resource lifecycle and validation
68+
### Resource lifecycle
6969

7070
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.
7171

@@ -83,7 +83,7 @@ When a StorageClass fails to meet the selector criteria during evaluation, vClus
8383

8484
The error output appears as a Kubernetes event that you can view using `kubectl describe`.
8585

86-
### Orphaned resources and cleanup
86+
### Remove orphaned resources
8787

8888
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.
8989

@@ -93,7 +93,7 @@ When vCluster removes a synced StorageClass from the virtual cluster due to sele
9393

9494
To sync only StorageClass resources labeled `environment: development`:
9595

96-
```yaml title="Filter example for storageClass"
96+
```yaml title="Filter example for StorageClass"
9797
sync:
9898
toHost:
9999
persistentVolumes:
@@ -112,7 +112,7 @@ sync:
112112

113113
To sync StorageClass resources where the label `kubernetes.io/storage.class` is either `network-nas` or `fast-ssd`:
114114

115-
```yaml title="Flexible filter example for storageClass"
115+
```yaml title="Flexible filter example for StorageClass"
116116
sync:
117117
toHost:
118118
persistentVolumes:
@@ -135,7 +135,7 @@ sync:
135135

136136
The following configuration syncs StorageClass resources that match both label and expression criteria:
137137

138-
```yaml title="Combined filter example for storageClass"
138+
```yaml title="Combined filter example for StorageClass"
139139
sync:
140140
toHost:
141141
persistentVolumes:
@@ -160,7 +160,7 @@ sync:
160160

161161
When a PersistentVolumeClaim resource references a StorageClass that doesn't match the selector criteria, the error output looks like this:
162162

163-
```bash title="Error handling example for storageClass"
163+
```bash title="Error handling example for StorageClass"
164164
vcluster-virtual-cluster-1:~$ kubectl describe pvc my-pvc
165165
Name: my-pvc
166166
Namespace: default

0 commit comments

Comments
 (0)