Skip to content

Commit 0531b63

Browse files
authored
Update runtime-classes.mdx
1 parent 8ef6dda commit 0531b63

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ When RuntimeClass synchronization is enabled, vCluster uses selector criteria to
5252

5353
**Unified selector control**: The same selector determines which RuntimeClass resources are imported into the virtual cluster and which Pod resources can sync to the host cluster. If a Pod references a RuntimeClass that was not synced to the virtual cluster, that Pod cannot sync to the host cluster.
5454

55-
## Using selectors to filter RuntimeClasses
55+
## Use selectors to filter RuntimeClasses
5656

5757
Selectors provide precise control over which RuntimeClass resources get synced from the host cluster. vCluster supports two types of selector criteria that follow standard Kubernetes label selector syntax.
5858

@@ -69,9 +69,9 @@ All specified label conditions must match for a RuntimeClass to be included in t
6969

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

72-
## Sync behavior and considerations
72+
## Sync behavior considerations
7373

74-
### Resource lifecycle and validation
74+
### Resource lifecycle
7575

7676
Synced RuntimeClass resources function like any other Kubernetes resource in the virtual cluster. You can view them with `kubectl get runtimeclass` and reference them in Pod specifications using the runtimeClassName field.
7777

@@ -89,7 +89,7 @@ When a RuntimeClass fails to meet the selector criteria during evaluation, vClus
8989

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

92-
### Orphaned resources and cleanup
92+
### Remove orphaned resources
9393

9494
When vCluster removes a synced RuntimeClass from the virtual cluster due to selector changes or deletion from the host cluster, any Pod resources that reference it remain in the virtual cluster. These orphaned Pod 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.
9595

@@ -99,7 +99,7 @@ When vCluster removes a synced RuntimeClass from the virtual cluster due to sele
9999

100100
To sync only RuntimeClass resources labeled `environment: development`:
101101

102-
```yaml title="Filter example runtimeClass"
102+
```yaml title="Filter example RuntimeClass"
103103
sync:
104104
toHost:
105105
pods:
@@ -116,7 +116,7 @@ sync:
116116

117117
To sync RuntimeClass resources where the label `kubernetes.io/runtime.class` is either `gvisor` or `youki`:
118118

119-
```yaml title="Flexible filter example runtimeClass"
119+
```yaml title="Flexible filter example RuntimeClass"
120120
sync:
121121
toHost:
122122
pods:
@@ -137,7 +137,7 @@ sync:
137137

138138
The following configuration syncs RuntimeClass resources that match both label and expression criteria:
139139

140-
```yaml title="Combined filter example runtimeClass"
140+
```yaml title="Combined filter example RuntimeClass"
141141
sync:
142142
toHost:
143143
pods:
@@ -160,7 +160,7 @@ sync:
160160

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

163-
```bash title="Error handling example runtimeClass"
163+
```bash title="Error handling example RuntimeClass"
164164
vcluster-virtual-cluster-1:~$ kubectl describe pod my-pod
165165
Name: my-pod
166166
Namespace: default

0 commit comments

Comments
 (0)