Skip to content

Commit 28ee681

Browse files
lucferbuxpboyd
andauthored
Revamp profile installation instructions for MR (kubeflow#854)
* (feat): Revamp profile installation instructions for MR Signed-off-by: lucferbux <[email protected]> * (feat):Improve docs and remove standalone mention Signed-off-by: lucferbux <[email protected]> * Update manifests/kustomize/README.md Co-authored-by: Paul Boyd <[email protected]> Signed-off-by: Lucas Fernandez <[email protected]> * Change layout of manifest Signed-off-by: lucferbux <[email protected]> --------- Signed-off-by: lucferbux <[email protected]> Signed-off-by: Lucas Fernandez <[email protected]> Co-authored-by: Paul Boyd <[email protected]>
1 parent ef2cf50 commit 28ee681

File tree

1 file changed

+68
-40
lines changed

1 file changed

+68
-40
lines changed

manifests/kustomize/README.md

Lines changed: 68 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,44 @@
22

33
This folder contains [Kubeflow Model Registry](https://www.kubeflow.org/docs/components/model-registry/installation/) Kustomize manifests
44

5-
## Installation
5+
## Overview
66

7-
To install Kubeflow Model Registry, follow [Kubeflow Model Registry deployment documentation](https://www.kubeflow.org/docs/components/model-registry/installation/)
7+
This is the full installation guide, for a quick install in an existing Kubeflow installation, follow [these instructions](https://www.kubeflow.org/docs/components/model-registry/installation/).
8+
**Ensure you are running all these commands from the directory containing this README.md file (e.g.: you could check with `pwd`).**
89

9-
The following instructions will summarize how to deploy Model Registry as separate component in the context of a default Kubeflow >=1.9 installation.
10-
Ensure you are running these commands from the directory containing this README.md file (e.g.: you could check with `pwd`).
10+
## Kubeflow Central Dashboard Installation
1111

12-
```bash
13-
kubectl apply -k overlays/db
14-
```
12+
These instructions assume that you've installed Kubeflow from the [manifests](https://github.com/kubeflow/manifests/), if you're using a distribution consult its documentation instead.
1513

16-
As the default Kubeflow installation provides an Istio mesh, apply the necessary manifests:
14+
Kubeflow Central Dashboard uses [Profiles](https://www.kubeflow.org/docs/components/central-dash/profiles/) to handle user namespaces and permissions. By default, the manifests deploy the Model Registry instance in the `kubeflow` namespace, to install a compatible version of Model Registry for Kubeflow, you should deploy a separate instance of Model Registry in the profile's namespace. For that just run:
1715

18-
```bash
19-
kubectl apply -k options/istio
16+
```sh
17+
PROFILE_NAME=<your-profile>
18+
for DIR in options/istio overlays/db ; do (cd $DIR; kustomize edit set namespace $PROFILE_NAME; kubectl apply -k .); done
2019
```
2120

22-
Check everything is up and running:
23-
24-
```bash
25-
kubectl wait --for=condition=available -n kubeflow deployment/model-registry-deployment --timeout=2m
26-
kubectl logs -n kubeflow deployment/model-registry-deployment
27-
```
21+
> **⚠️ Warning:** If you're not sure of the profile name, you can find it in the name space drop-down on the Kubeflow Dashboard.
2822
29-
Optionally, you can also port-forward the REST API container port of Model Registry to interact with it from your terminal:
23+
Check everything is up and running:
3024

3125
```bash
32-
kubectl port-forward svc/model-registry-service -n kubeflow 8081:8080
26+
kubectl wait --for=condition=available-n ${PROFILE_NAME} deployment/model-registry-deployment --timeout=2m
27+
kubectl logs -n ${PROFILE_NAME} deployment/model-registry-deployment
3328
```
3429

35-
And then, from another terminal:
30+
Now, to install the Model Registry UI as a Kubeflow component, you need first to deploy the Model Registry UI:
3631

3732
```bash
38-
curl -sX 'GET' \
39-
'http://localhost:8081/api/model_registry/v1alpha3/registered_models?pageSize=100&orderBy=ID&sortOrder=DESC' \
40-
-H 'accept: application/json' | jq
33+
kubectl apply -k options/ui/overlays/istio -n kubeflow
4134
```
4235

43-
### UI Installation
44-
45-
There are two main ways to deploy the Model Registry UI:
46-
47-
1. Standalone mode - Use this if you are using Model Registry without the Kubeflow Platform (**Note: You will need a custom standalone image**)
48-
49-
2. Integrated mode - Use this if you are deploying Model Registry in Kubeflow
50-
51-
For a standalone install, we recommend following the [Model Registry UI standalone deployment documentation](../../clients/ui/docs/local-deployment-guide-ui.md).
52-
53-
For an integrated install use the kubeflow UI overlay:
36+
And then to make it accessible through Kubeflow Central Dashboard, you need to edit the `centraldashboard-config` ConfigMap to add the Model Registry UI link to the Central Dashboard by running the following command:
5437

5538
```bash
56-
kubectl apply -k options/ui/overlays/istio -n kubeflow
39+
kubectl get configmap centraldashboard-config -n kubeflow -o json | jq '.data.links |= (fromjson | .menuLinks += [{"icon": "assignment", "link": "/model-registry/", "text": "Model Registry", "type": "item"}] | tojson)' | kubectl apply -f - -n kubeflow
5740
```
5841

59-
To make Model Registry UI accessible from the Kubeflow UI, you need to add the following to your Kubeflow UI configmap:
42+
Alternatively, you can edit the ConfigMap manually by running:
6043

6144
```bash
6245
kubectl edit configmap -n kubeflow centraldashboard-config
@@ -77,17 +60,62 @@ data:
7760
...
7861
```
7962
80-
Or you can add it in one line with:
63+
Now you should be able to see the Model Registry UI in the Kubeflow Central Dashboard, and access to the Model Registry deployment in the profile namespace.
64+
65+
### Uninstall
66+
67+
To uninstall the Kubeflow Model Registry run:
8168
8269
```bash
83-
kubectl get configmap centraldashboard-config -n kubeflow -o json | jq '.data.links |= (fromjson | .menuLinks += [{"icon": "assignment", "link": "/model-registry/", "text": "Model Registry", "type": "item"}] | tojson)' | kubectl apply -f - -n kubeflow
84-
````
70+
# Uninstall Model Registry Instance
71+
PROFILE_NAME=<your-profile>
72+
for DIR in options/istio overlays/db ; do (cd $DIR; kustomize edit set namespace $PROFILE_NAME; kubectl delete -k .); done
73+
74+
# Uninstall Model Registry UI
75+
kubectl delete -k options/ui/overlays/istio -n kubeflow
76+
```
77+
78+
79+
## Model Registry as a separate component Installation
80+
81+
The following instructions will summarize how to deploy Model Registry as separate component in the context of a default Kubeflow >=1.9 installation.
82+
83+
```bash
84+
kubectl apply -k overlays/db
85+
```
86+
87+
As the default Kubeflow installation provides an Istio mesh, apply the necessary manifests:
88+
89+
```bash
90+
kubectl apply -k options/istio
91+
```
92+
93+
Check everything is up and running:
94+
95+
```bash
96+
kubectl wait --for=condition=available -n kubeflow deployment/model-registry-deployment --timeout=2m
97+
kubectl logs -n kubeflow deployment/model-registry-deployment
98+
```
99+
100+
Optionally, you can also port-forward the REST API container port of Model Registry to interact with it from your terminal:
101+
102+
```bash
103+
kubectl port-forward svc/model-registry-service -n kubeflow 8081:8080
104+
```
105+
106+
And then, from another terminal:
107+
108+
```bash
109+
curl -sX 'GET' \
110+
'http://localhost:8081/api/model_registry/v1alpha3/registered_models?pageSize=100&orderBy=ID&sortOrder=DESC' \
111+
-H 'accept: application/json' | jq
112+
```
85113

86-
## Usage
114+
### Usage
87115

88116
For a basic usage of the Kubeflow Model Registry, follow the [Kubeflow Model Registry getting started documentation](https://www.kubeflow.org/docs/components/model-registry/getting-started/)
89117

90-
## Uninstall
118+
### Uninstall
91119

92120
To uninstall the Kubeflow Model Registry run:
93121

0 commit comments

Comments
 (0)