Skip to content

Commit 4fbc2f6

Browse files
committed
Incorporated comments
1 parent 65c9c32 commit 4fbc2f6

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

modules/openshift-ai-connector-for-rhdh/proc-setting-up-openshift-ai-connector-for-rhdh-with-rhoai.adoc

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ metadata:
4848
argocd.argoproj.io/sync-wave: "0"
4949
rules:
5050
- apiGroups:
51-
- apiextensions.k8s.sio
51+
- apiextensions.k8s.io
5252
resources:
5353
- customresourcedefinitions
5454
verbs:
@@ -91,11 +91,11 @@ subjects:
9191
name: rhdh-rhoai-connector
9292
namespace: ai-rhdh
9393
----
94-
** `Role` and `RoleBinding` to allow ConfigMap updates within the {product-very-short} namespace. For example:
94+
** `Role` and `RoleBinding` to allow ConfigMap updates within the {product-very-short} namespace (`ai-rhdh`). For example:
9595
+
9696
[source,yaml]
9797
----
98-
# Example for `Role`
98+
# Example for `Role` in the {product-very-short} namespace (ai-rhdh)
9999
apiVersion: rbac.authorization.k8s.io/v1
100100
kind: Role
101101
metadata:
@@ -109,25 +109,26 @@ rules:
109109
+
110110
[source,yaml]
111111
----
112-
# Example for `RoleBinding`
112+
# Example for `RoleBinding` in the {product-very-short} namespace (ai-rhdh)
113113
apiVersion: rbac.authorization.k8s.io/v1
114114
kind: RoleBinding
115115
metadata:
116-
name: rhdh-rhoai-dashboard-permissions
117-
namespace: rhoai-model-registries
116+
name: rhdh-rhoai-connector
117+
namespace: ai-rhdh
118118
roleRef:
119119
apiGroup: rbac.authorization.k8s.io
120120
kind: Role
121-
name: registry-user-modelregistry-public
121+
name: rhdh-rhoai-connector
122122
subjects:
123-
- apiGroup: rbac.authorization.k8s.io
124-
kind: Group
125-
name: system:serviceaccounts:ai-rhdh
123+
- kind: ServiceAccount
124+
name: rhdh-rhoai-connector
125+
namespace: ai-rhdh
126126
----
127-
** `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`).
127+
** `RoleBinding` in the {rhoai-short} namespace (`rhoai-model-registries`) to grant the {product-very-short} `ServiceAccount` read permissions to the model registry data (binding to `registry-user-modelregistry-public`).
128128
+
129129
[source,yaml]
130130
----
131+
# Example for `RoleBinding` in the {rhoai-short} namespace (rhoai-model-registries)
131132
apiVersion: rbac.authorization.k8s.io/v1
132133
kind: RoleBinding
133134
metadata:
@@ -173,7 +174,14 @@ plugins:
173174
** If {product-very-short} was installed using the Operator, modify your {product-very-short} custom resource (CR) instance.
174175
** If {product-very-short} was installed using the Helm charts, modify the *Deployment* specification.
175176

176-
. The system relies on three sidecar containers ({openshift-ai-connector-name}) running alongside the `backstage-backend` container. Add these sidecar containers to your configuration referencing the `rhdh-rhoai-connector-token` Secret:
177+
. The system relies on three sidecar containers ({openshift-ai-connector-name}) running alongside the `backstage-backend` container.
178+
+
179+
[NOTE]
180+
====
181+
During startup, you may see non-critical log errors, such as `connection refused` or `in cluster config error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory`, in the sidecar logs (in the `location` container). These errors are expected during the initial setup and do not indicate a failure, provided the container eventually becomes healthy.
182+
====
183+
184+
Add these sidecar containers to your configuration referencing the `rhdh-rhoai-connector-token` Secret:
177185
** `location`: Provides the REST API for {product-very-short} plugins to fetch model metadata.
178186
** `storage-rest`: Maintains a cache of AI Model metadata in a ConfigMap called `bac-import-model`.
179187
** `rhoai-normalizer`: Acts as a Kubernetes controller and {rhoai-short} client, normalizing {rhoai-short} metadata for the connector. The following code block is an example:
@@ -184,7 +192,6 @@ spec:
184192
template:
185193
spec:
186194
containers:
187-
- name: backstage-backend
188195
- env:
189196
- name: NORMALIZER_FORMAT
190197
value: JsonArrayFormat
@@ -200,7 +207,6 @@ spec:
200207
- secretRef:
201208
name: rhdh-rhoai-connector-token
202209
image: quay.io/redhat-ai-dev/model-catalog-location-service@sha256:4f6ab6624a29f627f9f861cfcd5d18177d46aa2c67a81a75a1502c49bc2ff012
203-
204210
imagePullPolicy: Always
205211
name: location
206212
ports:
@@ -210,8 +216,8 @@ spec:
210216
volumeMounts:
211217
- mountPath: /opt/app-root/src/dynamic-plugins-root
212218
name: dynamic-plugins-root
213-
workingDir: /opt/app-root/src
214-
- env:
219+
workingDir: /opt/app-root/src
220+
- env:
215221
- name: NORMALIZER_FORMAT
216222
value: JsonArrayFormat
217223
- name: STORAGE_TYPE
@@ -230,14 +236,13 @@ spec:
230236
- secretRef:
231237
name: rhdh-rhoai-connector-token
232238
image: quay.io/redhat-ai-dev/model-catalog-storage-rest@sha256:398095e7469e86d84b1196371286363f4b7668aa3e26370b4d78cb8d4ace1dc9
233-
234239
imagePullPolicy: Always
235240
name: storage-rest
236241
volumeMounts:
237242
- mountPath: /opt/app-root/src/dynamic-plugins-root
238243
name: dynamic-plugins-root
239-
workingDir: /opt/app-root/src
240-
- env:
244+
workingDir: /opt/app-root/src
245+
- env:
241246
- name: NORMALIZER_FORMAT
242247
value: JsonArrayFormat
243248
- name: POD_IP
@@ -252,13 +257,14 @@ spec:
252257
- secretRef:
253258
name: rhdh-rhoai-connector-token
254259
image: quay.io/redhat-ai-dev/model-catalog-rhoai-normalizer@sha256:fe6c05d57495d6217c4d584940ec552c3727847ff60f39f5d04f94be024576d8
255-
256260
imagePullPolicy: Always
257261
name: rhoai-normalizer
258262
volumeMounts:
259263
- mountPath: /opt/app-root/src/dynamic-plugins-root
260264
name: dynamic-plugins-root
261-
workingDir: /opt/app-root/src
265+
workingDir: /opt/app-root/src
266+
args:
267+
- '--metrics-address=:8081'
262268
----
263269

264270
. Enable `Connector` in your `{product-very-short}{my-app-config-file}` file.
@@ -271,7 +277,7 @@ providers:
271277
development:
272278
baseUrl: http://localhost:9090
273279
----
274-
280+
+
275281
where:
276282

277283
`modelCatalog`:: Specifies the name of the provider.

0 commit comments

Comments
 (0)