Skip to content

Commit 6f71440

Browse files
RUN-15680 add examples
1 parent 35ea6c8 commit 6f71440

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

docs/admin/admin-ui-setup/project-setup.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,43 @@ There may be cases where you cannot change the YAML file and still want to use t
239239

240240
`runai/enforce-scheduler-name: true`
241241

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+
242279
## See Also
243280
244281
Run:ai supports an additional (optional) level of resource allocation called [Departments](department-setup.md).

0 commit comments

Comments
 (0)