Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit 1320eb3

Browse files
committed
Document the Model Registry permissions
Signed-off-by: mprahl <mprahl@users.noreply.github.com>
1 parent 58cc9ac commit 1320eb3

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,34 @@ This project makes running the InstructLab large language model (LLM) fine-tunin
2121
* NOTE: v3 is not compatible with RHOAI
2222
* [SDG taxonomy tree] to utilize for Synthetic Data Generation (SDG)
2323
* An OpenShift AI 2.19 or newer installation, with:
24-
* Training Operator, ModelRegistry, KServe, and Data Science Pipelines components installed via the DataScienceCluster
24+
* Training Operator, Model Registry, KServe, and Data Science Pipelines components installed via the DataScienceCluster
2525
* See docs on [Installing RHOAI components via DSC]
2626
* For [Model Registry] you will need:
2727
* Model Registry API URL
2828
* Model Registry Name
29+
* The `pipeline-runner-dspa` `ServiceAccount` must be assigned the `registry-user-<model registry name>` role in
30+
the `rhoai-model-registries` namespace. If not, the Model Registry prerequisites check in the pipeline will fail
31+
with a `403` HTTP error.
32+
* **Using the UI**: Follow the instructions at [Managing model registry permissions](https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2.20/html/managing_model_registries/managing-model-registry-permissions_managing-model-registries).
33+
* **Using the CLI**: For example, for a model registry named `my-model-registry` and the Data Science
34+
Pipelines namespace of `my-pipelines-namespace`, the `RoleBinding` would look as follows:
35+
36+
```yaml
37+
apiVersion: rbac.authorization.k8s.io/v1
38+
kind: RoleBinding
39+
metadata:
40+
name: dsp-permissions
41+
namespace: rhoai-model-registries
42+
roleRef:
43+
apiGroup: rbac.authorization.k8s.io
44+
kind: Role
45+
name: registry-user-my-model-registry
46+
subjects:
47+
- kind: ServiceAccount
48+
name: pipeline-runner-dspa
49+
namespace: my-pipelines-namespace
50+
```
51+
2952
* A data science project/namespace, in this document this will be referred to as `<data-science-project-name/namespace>`
3053
* The Data Science Project should have a [Data Science Pipelines Server Configured]
3154
* A GPU [Accelerator profile enabled and created]

0 commit comments

Comments
 (0)