@@ -52,7 +52,7 @@ When RuntimeClass synchronization is enabled, vCluster uses selector criteria to
52
52
53
53
**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.
54
54
55
- ## Using selectors to filter RuntimeClasses
55
+ ## Use selectors to filter RuntimeClasses
56
56
57
57
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.
58
58
@@ -69,9 +69,9 @@ All specified label conditions must match for a RuntimeClass to be included in t
69
69
70
70
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).
71
71
72
- ## Sync behavior and considerations
72
+ ## Sync behavior considerations
73
73
74
- ### Resource lifecycle and validation
74
+ ### Resource lifecycle
75
75
76
76
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.
77
77
@@ -89,7 +89,7 @@ When a RuntimeClass fails to meet the selector criteria during evaluation, vClus
89
89
90
90
The error output appears as a Kubernetes event that you can view using `kubectl describe`.
91
91
92
- ### Orphaned resources and cleanup
92
+ ### Remove orphaned resources
93
93
94
94
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.
95
95
@@ -99,7 +99,7 @@ When vCluster removes a synced RuntimeClass from the virtual cluster due to sele
99
99
100
100
To sync only RuntimeClass resources labeled `environment: development`:
101
101
102
- ```yaml title = " Filter example runtimeClass "
102
+ ```yaml title = " Filter example RuntimeClass "
103
103
sync:
104
104
toHost:
105
105
pods:
@@ -116,7 +116,7 @@ sync:
116
116
117
117
To sync RuntimeClass resources where the label `kubernetes.io/runtime.class` is either `gvisor` or `youki`:
118
118
119
- ```yaml title = " Flexible filter example runtimeClass "
119
+ ```yaml title = " Flexible filter example RuntimeClass "
120
120
sync:
121
121
toHost:
122
122
pods:
@@ -137,7 +137,7 @@ sync:
137
137
138
138
The following configuration syncs RuntimeClass resources that match both label and expression criteria:
139
139
140
- ```yaml title = " Combined filter example runtimeClass "
140
+ ```yaml title = " Combined filter example RuntimeClass "
141
141
sync:
142
142
toHost:
143
143
pods:
@@ -160,7 +160,7 @@ sync:
160
160
161
161
When a Pod resource references a RuntimeClass that doesn't match the selector criteria, the error output looks like this:
162
162
163
- ```bash title = " Error handling example runtimeClass "
163
+ ```bash title = " Error handling example RuntimeClass "
164
164
vcluster-virtual-cluster-1:~$ kubectl describe pod my-pod
165
165
Name: my-pod
166
166
Namespace: default
0 commit comments