File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
docs/admin/admin-ui-setup Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,43 @@ There may be cases where you cannot change the YAML file and still want to use t
239
239
240
240
` runai/enforce-scheduler-name: true `
241
241
242
+ ### Example
243
+
244
+ To annotate a project named ` proj-a ` , use the following command:
245
+
246
+ ``` bash
247
+ kubectl annotate ns runai-proj-a runai/enforce-scheduler-name=true
248
+ ```
249
+
250
+ Verify the namespace in yaml format to see the annotation:
251
+
252
+ ``` bash
253
+ kubectl get ns runai-proj-a -o yaml
254
+ ```
255
+
256
+ Output:
257
+
258
+ ``` YAML
259
+ apiVersion : v1
260
+ kind : Namespace
261
+ metadata :
262
+ annotations :
263
+ runai/enforce-scheduler-name : " true"
264
+ creationTimestamp : " 2024-04-09T08:15:50Z"
265
+ labels :
266
+ kubernetes.io/metadata.name : runai-proj-a
267
+ runai/namespace-version : v2
268
+ runai/queue : proj-a
269
+ name : runai-proj-a
270
+ resourceVersion : " 388336"
271
+ uid : c53af666-7989-43df-9804-42bf8965ce83
272
+ spec :
273
+ finalizers :
274
+ - kubernetes
275
+ status :
276
+ phase : Active
277
+ ` ` `
278
+
242
279
## See Also
243
280
244
281
Run:ai supports an additional (optional) level of resource allocation called [Departments](department-setup.md).
You can’t perform that action at this time.
0 commit comments