Skip to content

Commit 24cbef8

Browse files
Merge branch 'master' into Existing-pvc-new-doc-218
2 parents b2dbbaa + f518a4b commit 24cbef8

File tree

5 files changed

+95
-2
lines changed

5 files changed

+95
-2
lines changed

.github/workflows/automated-publish-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ jobs:
9595
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
9696
SLACK_COLOR: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
9797
SLACK_TITLE: "RunAI-Docs: Version ${{ needs.env.outputs.CURRENT_BRANCH }} Deployment ${{ contains(needs.*.result, 'failure') && 'failed' || 'completed successfully' }}"
98-
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}"
99-
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}"
98+
SLACK_MESSAGE_ON_SUCCESS: "Docs were updated successfully for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
99+
SLACK_MESSAGE_ON_FAILURE: "Docs update FAILED for version ${{ needs.env.outputs.TITLE }}. PR Link: ${{ github.event.pull_request.html_url }}"
100100
MSG_MINIMAL: true
101101
SLACK_FOOTER: ""
102102

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Persistent Volumes (PVs) & Persistent Volume Claims (PVCs)
2+
3+
Persistent Volumes (PVs) and Persistent Volume Claims (PVCs) are concepts in Kubernetes for managing storage. A PV is a piece of storage in the cluster, provisioned by an administrator or dynamically by Kubernetes using a StorageClass. It is a resource in the cluster, just like a node is a cluster resource.
4+
5+
PVCs are requests for storage by a user. They are similar to pods, in that pods consume node resources and PVCs consume PV resources. PVCs allow users to request specific sizes and access modes (for example, read/write once, read-only many) without needing to know the details of the underlying storage infrastructure.
6+
7+
Using PVs and PVCs in Kubernetes is essential for AI workloads as they provide a reliable and consistent way to manage storage that persists beyond the lifecycle of individual pods. This ensures that data generated by AI workloads is not lost when pods are rescheduled or updated, providing a seamless and efficient storage solution that can handle the large datasets typically associated with AI projects.
8+
9+
## Data source of type Persistent Volume Claim (PVC)
10+
11+
At Run:ai, a data source of type PVC is an abstraction, mapping directly to a Kubernetes PVC. This type of integration allows you to specify and manage your data storage requirements within the Run:ai platform, while using familiar Kubernetes storage concepts.
12+
13+
By leveraging PVCs as data sources, Run:ai enables access to persistent storage for workloads, ensuring that data remains consistent and accessible across different compute resources and workload executions.
14+
15+
## Creating a data source of type PVC via the UI
16+
17+
Like any other asset, when creating a data source, the user can select the scope of the data source, based on their permissions set in Run:ai’s Role Based Access Control (RBAC) system.
18+
19+
For example: By selecting Department B as the scope of the asset, any user with a role which allows them to view the data source in Department A or any of its subordinate units (current and future) can view this PVC.
20+
![](img/9-scope.png)
21+
22+
There are two different ways of creating data source of type PVC:
23+
24+
1. **Existing PVC**—Data source of type PVC using an existing PVC in the cluster
25+
1. **New PVC**—Data source of type PVC by creating a new pvc in the cluster
26+
![](img/10-pvc.png)
27+
28+
!!! NOTE
29+
If there are no existing PVCs that Run:ai has visibility or authorization to use, this option is disabled in the Run:ai platform. For details on providing visibility and authorization, see below Existing PVC.
30+
31+
## Existing PVC
32+
33+
To select an existing PVC in the Run:ai platform, the admin is responsible for performing a number of actions prior to creating the data source via the Run:ai UI (or API). These actions provide Run:ai with access to the existing PVC, authorization to share across the selected scope and eventually result in exposing the existing PVC in the UI for the user to select.
34+
35+
Click the link for more information on [creating a data source of type PVC via API](https://envinaclickstaging.staging.run.ai/api/docs\#tag/PVC/operation/create\_pvc\_asset).
36+
37+
The actions taken by the admin are based on the scope (cluster, department or project) that the admin wants for data source of type PVC.
38+
39+
### For a cluster scope
40+
41+
1. Locate the PVC in the runai namespace
42+
1. Provide Run:ai with visibility and authorization to share the PVC to your selected scope by implementing the following label:
43+
[run.ai/cluster-wide](http://run.ai/cluster-wide): "true"
44+
45+
!!!NOTE
46+
This step is also relevant for creating the data source of type PVC via API.
47+
48+
In the Run:ai platform finish creating the data source of type PVC:
49+
50+
1. Select your cluster as a scope
51+
1. Select the existing PVC
52+
1. Complete all mandatory fields
53+
1. Click Create
54+
55+
### For a department scope:
56+
57+
1. Locate the PVC in the runai namespace
58+
1. Provide Run:ai with visibility and authorization to share the PVC to your selected scope by implementing the following label:
59+
[run.ai/department](http://run.ai/department): "\<name of department\>"
60+
1. In the Run:ai platform finish creating the data source of type PVC:
61+
1. Select you department as a scope (the same one as in the label)
62+
1. Select the existing PVC
63+
1. Complete all mandatory fields
64+
1. Click Create
65+
66+
### For a project scope:
67+
68+
!!! NOTE
69+
For project scope, no labels are required.
70+
71+
1. In the Run:ai platform finish creating the data source of type PVC:
72+
1. Select your project as a scope
73+
1. Select the existing PVC
74+
1. Complete all mandatory fields
75+
1. Click Create
76+
77+
## Creating a new PVC
78+
79+
When creating a data source of type PVC using a new PVC, Run:ai creates the PVC for you in the cluster.
80+
81+
1. Select your scope of choice
82+
1. Select new PVC
83+
1. Complete all mandatory fields
84+
1. Click Create
85+
86+
**NOTES**:
87+
88+
* When creating data source of type PVC using a new PVC, the PVC is created immediately in the cluster runai namespace (even if no workload has requested to use this PVC)
89+
* A PVC created in the cluster by selecting the option “New PVC” never appears as a PVC in the “Existing PVC“ option.
Loading
Loading

docs/home/whats-new-2-18.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ date: 2024-June-14
103103

104104
* Added a new API for creating distributed training workload policies and inference workload policies. These new policies in the API allow to set defaults, enforce rules and impose setup on distributed training and inference workloads. For distributed policies, worker and master may require different rules due to their different specifications. The new capability is currently available via API only. Documentation on submitting policies to follow shortly.
105105

106+
#### Policy for distributed and inference workloads in the API
107+
108+
* Added a new API for creating distributed training workload policies and inference workload policies. These new policies in the API allow to set defaults, enforce rules and impose setup on distributed training and inference workloads. For distributed policies, worker and master may require different rules due to their different specifications. The new capability is currently available via API only. Documentation on submitting policies to follow shortly.
109+
106110
## Deprecation Notifications
107111

108112
[Existing notifications feature](https://docs.run.ai/v2.10/admin/researcher-setup/email-messaging/) requires cluster configuration, is being deprecated in favor of an improved Notification System. If you have been using the existing notifications feature in the cluster, you can continue to use it for the next **two** versions. It is recommend that you change to the new notifications system in the Control Plane for better control and improved message granularity.

0 commit comments

Comments
 (0)