You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openshift-ai-connector-for-rhdh/proc-setting-up-openshift-ai-connector-for-rhdh-with-rhoai.adoc
+129-4Lines changed: 129 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The installation of the {openshift-ai-connector-name} requires manual updates to
7
7
8
8
.{rhoai-short} Prerequisites
9
9
10
-
* To import model cards from the model catalog into TechDocs, you need to use {rhoai-short} 2.25.
10
+
* To import model cards from the model catalog into TechDocs, you must use {rhoai-short} 2.25.
11
11
+
12
12
[NOTE]
13
13
====
@@ -25,11 +25,136 @@ For more details, see link:https://docs.redhat.com/en/documentation/red_hat_open
25
25
26
26
. Configure {rhoai-short}-related RBAC and credentials.
27
27
A Kubernetes `ServiceAccount` and a `service-account-token` Secret are required for the connector to retrieve data from {rhoai-short}. The following resources must be created, replacing namespace names (`ai-rhdh` for {product-very-short}, `rhoai-model-registries` for {rhoai-short}) as needed:
28
-
** `ServiceAccount` (`rhdh-rhoai-bridge`)
29
-
** `ClusterRole` and `ClusterRoleBinding` (`rhdh-rhoai-bridge`) to allow access to OCP resources like `routes`, `services`, and `inferenceservices`.
30
-
** `Role` and `RoleBinding` to allow ConfigMap updates within the {product-very-short} namespace.
28
+
** `ServiceAccount` (`rhdh-rhoai-bridge`). For example:
29
+
+
30
+
[source,yaml]
31
+
----
32
+
apiVersion: v1
33
+
kind: ServiceAccount
34
+
metadata:
35
+
name: rhdh-rhoai-bridge
36
+
namespace: ai-rhdh
37
+
----
38
+
** `ClusterRole` and `ClusterRoleBinding` (`rhdh-rhoai-bridge`) to allow access to OCP resources like `routes`, `services`, and `inferenceservices`. For example:
39
+
+
40
+
[source,yaml]
41
+
----
42
+
# Example for `ClusterRole`
43
+
apiVersion: rbac.authorization.k8s.io/v1
44
+
kind: ClusterRole
45
+
metadata:
46
+
name: rhdh-rhoai-bridge
47
+
annotations:
48
+
argocd.argoproj.io/sync-wave: "0"
49
+
rules:
50
+
- apiGroups:
51
+
- apiextensions.k8s.sio
52
+
resources:
53
+
- customresourcedefinitions
54
+
verbs:
55
+
- get
56
+
- apiGroups:
57
+
- route.openshift.io
58
+
resources:
59
+
- routes
60
+
verbs:
61
+
- get
62
+
- list
63
+
- watch
64
+
- apiGroups: [""]
65
+
resources:
66
+
- serviceaccounts
67
+
- services
68
+
verbs:
69
+
- get
70
+
- list
71
+
- watch
72
+
73
+
- apiGroups: ["serving.kserve.io"]
74
+
resources: ["inferenceservices"]
75
+
verbs: ["get", "list", "watch"]
76
+
----
77
+
+
78
+
[source,yaml]
79
+
----
80
+
# Example for `ClusterRoleBinding`
81
+
apiVersion: rbac.authorization.k8s.io/v1
82
+
kind: ClusterRoleBinding
83
+
metadata:
84
+
name: rhdh-rhoai-bridge
85
+
roleRef:
86
+
apiGroup: rbac.authorization.k8s.io
87
+
kind: ClusterRole
88
+
name: rhdh-rhoai-bridge
89
+
subjects:
90
+
- kind: ServiceAccount
91
+
name: rhdh-rhoai-bridge
92
+
namespace: ai-rhdh
93
+
----
94
+
** `Role` and `RoleBinding` to allow ConfigMap updates within the {product-very-short} namespace. For example:
** `RoleBinding` in the {rhoai-short} namespace to grant the {product-very-short} `ServiceAccount` read permissions to the Model Registry data (binding to `registry-user-modelregistry-public`).
128
+
+
129
+
[source,yaml]
130
+
----
131
+
apiVersion: rbac.authorization.k8s.io/v1
132
+
kind: RoleBinding
133
+
metadata:
134
+
name: rhdh-rhoai-bridge
135
+
namespace: ai-rhdh
136
+
roleRef:
137
+
apiGroup: rbac.authorization.k8s.io
138
+
kind: Role
139
+
name: rhdh-rhoai-bridge
140
+
subjects:
141
+
- kind: ServiceAccount
142
+
name: rhdh-rhoai-bridge
143
+
namespace: ai-rhdh
144
+
----
32
145
** Secret (`rhdh-rhoai-bridge-token`) of type `kubernetes.io/service-account-token` that goes along with the `rhdh-rhoai-bridge` `ServiceAccount`.
Copy file name to clipboardExpand all lines: modules/openshift-ai-connector-for-rhdh/ref-enrich-ai-model-metadata.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
[id="ref-enrich-ai-model-metadata_{context}"]
4
4
= Enrich AI model metadata for enhanced {product} experience
5
5
6
-
While {rhoai-short} provides essential data, an AI platform engineer can enrich the {backstage} experience by adding custom properties to the `ModelVersion` or `RegisteredModel` (or annotations to the `KServe InferenceService` if the Model Registry is not used) so that the {openshift-ai-connector-name} can add the information to the {product-very-short} entities it creates.
6
+
While {rhoai-short} provides essential data, an AI platform engineer using {rhoai-short} can enrich the {backstage}/{product-very-short} experience by adding custom properties to the `ModelVersion` or `RegisteredModel` (or annotations to the `KServe InferenceService` if the model registry is not used) so that the {openshift-ai-connector-name} can add the information to the {product-very-short} entities it creates. For more details, see https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/2.25/html/working_with_model_registries/working-with-model-registries_model-registry#editing-model-version-metadata-in-a-model-registry_model-registry[Editing model version metadata in a model registry].
7
7
8
8
|===
9
9
|Property Key |Entity Field Populated |Description
0 commit comments