Hub (Model Registry)
Basic information
Section titled “Basic information”| Item | Value |
|---|---|
| Version | Hub / Model Registry v0.3.9 |
| Official docs | Kubeflow Model Registry |
| Upstream source | applications/hub/upstream |
Concepts and characteristics
Section titled “Concepts and characteristics”Hub is the component name used in this repository for the Kubeflow Model Registry deployment. Its job is to let trained models be managed not as plain file paths but as registered models, model versions, artifact metadata, and storage URIs for serving. It does not store model binaries by itself. The Dashboard shows it as the Model Registry menu, and the backend API is reached on the /api/model_registry/ path.

This deployment installs Model Registry not in the kubeflow namespace but in the Profile namespace kubeflow-user-example-com. The reason is that the Model Registry UI runs namespace-scoped, and this placement matches the Dashboard namespace switcher and the Profile RBAC flow. User Profile must therefore be completed first so that the namespace exists.
What the component establishes
Section titled “What the component establishes”- Model Registry server:
model-registry-deploymentprovides the REST API and stores model metadata in MySQL. - MySQL metadata store: the
model-registry-dbExternalName Service points tops-db-haproxy.mysql.svc.cluster.localand uses themodel_registrydatabase in the shared MySQL. - Model Registry UI:
model-registry-uiprovides the UI used by the Dashboard/model-registry/menu. - Istio routing:
/model-registry/is routed to the UI, and/api/model_registry/to the Model Registry server. - KServe storage initializer: the cluster-scoped
ClusterStorageContainerhandlesmodel-registry://URIs so KServe can bring registry artifacts into the predictor Pod. - Profile namespace placement: the server and UI are placed in
kubeflow-user-example-com, and the DB is the shared Percona MySQL Cluster in themysqlnamespace, used through the namespace-local ExternalName alias (model-registry-db).
Model Registry and KServe
Section titled “Model Registry and KServe”Model Registry manages model metadata and artifact locations, and KServe creates the actual model serving Pods. The point that connects the two is the model-registry:// storage URI. If a KServe InferenceService uses the model-registry://... form in storageUri, KServe uses the model-registry-storage-initializer registered in ClusterStorageContainer to resolve artifact information from the registry and prepares the model in a location the model server container can read.
| Layer | Responsibility | Main resources |
|---|---|---|
| Model Registry server | registered models, model versions, artifact metadata API | model-registry-deployment, model-registry-service |
| Model Registry DB | stores registry metadata | shared Percona MySQL, Service/model-registry-db |
| Model Registry UI | registry user screen inside Dashboard | model-registry-ui, model-registry-ui-service |
| KServe CSI initializer | translates model-registry:// URIs into model artifact downloads | ClusterStorageContainer/model-registry-storage-initializer |
The registry provides metadata and references rather than a second binary artifact store.
Role in Kubeflow
Section titled “Role in Kubeflow”Background
Section titled “Background”Between training and serving, connection information is needed: which name and version a model is managed under, which artifact corresponds to which model version, and which artifact serving should fetch. Model Registry is the component that manages this information through an API/UI inside Kubeflow.
Training output is not useful at platform scale if it is tracked only as ad hoc file paths. A practical ML platform needs a durable answer to questions like these:
- Which model is this artifact part of?
- Which version should be considered current?
- Which artifact URI should serving use?
- Which metadata should operators and applications read later?
Model Registry does not replace object storage or model-serving infrastructure. Instead, it gives those systems a stable metadata plane.
Key contributions
Section titled “Key contributions”- Model lifecycle metadata: manages registered models, versions, and artifact metadata in one place.
- Dashboard integration: the Central Dashboard
Model Registrymenu links to/model-registry/. - Serving integration: lets KServe fetch model artifacts registered in the registry through
model-registry://URIs. - Profile namespace based operation: places the registry server and UI in the Profile namespace to match the namespace-scoped UI and the Profile RBAC flow.
- Shared DB operation: removes the component’s own MySQL Pod and PVC and uses the Percona-managed
model_registrydatabase andmodel_registryrole.
Model Registry is the metadata bridge between training output and serving input. In this repository it is deliberately lightweight: a Profile-scoped registry API and UI, backed by shared MySQL, with a KServe storage initializer for model-registry:// resolution. That is enough to make model identities, versions, and serving references first-class without introducing a second artifact-storage system.
Current scope of support
Section titled “Current scope of support”This deployment does not treat Register and Register and store as the same feature. The current dev overlay installs only the Model Registry core and the KServe model-registry:// initializer, so the supported scope is the basic Register flow, which registers the URI of a model artifact that already exists in external storage as registry metadata.
Register and store also includes a transfer flow that copies or stores the model artifact on the registry side. This path needs namespace selection in the UI and additional controller/backend behavior, but the current deployment has no such wiring. So when Register and store is used in the UI, the namespace list lookup can fail, or even if the namespace problem is solved, there is no controller to reconcile the transfer/storage work, so it may not complete.
| Feature | What it needs | Current deployment status |
|---|---|---|
Register | Model Registry server API, MySQL metadata DB, an accessible artifact URI | Supported |
Register and store | namespace lookup permission for the UI, transfer/storage controller, related RBAC and runtime verification | Not supported |
Two differences were confirmed. First, the UI runs with --deployment-mode=kubeflow, but applications/hub/upstream/options/ui/overlays/kubeflow has no namespace list RBAC. The model-registry-ui-namespaces-reader ClusterRole exists only in the standalone overlay. Second, the dev overlay applies only overlays/dev/kubeflow/overlays/hub/registry and hub/csi, and does not install applications/hub/upstream/options/controller.
The operational default is therefore: “artifact transfer is handled by the platform backend or a separate storage workflow, and only the final storageUri is registered in Model Registry”. To make Register and store work, at minimum add namespaces get/list/watch permissions to the model-registry-ui ServiceAccount, design a hub/controller overlay separately, and then verify that the actual transfer/storage flow works in a Kubeflow multi-profile environment.
In practice this means:
- artifact transfer and storage placement are handled by another workflow or backend;
- Model Registry records the resulting
storageUriand metadata; - KServe consumes the final registry reference later.
Deployment structure
Section titled “Deployment structure”Overlay configuration
Section titled “Overlay configuration”Hub applies the registry core and the CSI initializer separately. The current dev overlay does not include options/controller.
overlays/dev/kubeflow/overlays/hub/registry -> applications/hub/upstream/overlays/db -> applications/hub/upstream/options/istio -> applications/hub/upstream/options/ui/overlays/istio -> 자체 MySQL Deployment/PVC 삭제 patch -> model-registry-db Service를 shared MySQL ExternalName으로 변경 -> model-registry-db-parameters-mysql.yaml patch
overlays/dev/kubeflow/overlays/hub/csi -> applications/hub/upstream/options/csiApply units
Section titled “Apply units”| Apply unit | Main contents | Reason |
|---|---|---|
hub/registry | Model Registry server, UI, Istio VirtualService/DestinationRule/AuthorizationPolicy, shared MySQL client settings | connect the registry API/UI in the Profile namespace to the shared DB |
hub/csi | ClusterStorageContainer/model-registry-storage-initializer | KServe must resolve model-registry:// URIs cluster-wide |
| Not applied | applications/hub/upstream/options/controller | the Register and store transfer/storage flow is outside the current scope |
Kubeflow-specific changes
Section titled “Kubeflow-specific changes”| Adjustment | Target | Reason |
|---|---|---|
| Namespace override | dev registry kustomization | install the registry server/UI into the kubeflow-user-example-com Profile namespace |
| Gateway FQDN fix | model-registry, model-registry-ui VirtualService | the VirtualServices in the Profile namespace must refer to kubeflow/kubeflow-gateway exactly |
| Destination host FQDN fix | DestinationRule and VirtualService destinations | the Services moved into the kubeflow-user-example-com namespace, so the FQDNs must match |
| Own DB removal | model-registry-db Deployment, metadata-mysql PVC | consolidate per-component MySQL and PVCs into the shared Percona Cluster |
| DB Service alias | model-registry-db Service | keep the existing application host name while resolving DNS to ps-db-haproxy.mysql.svc.cluster.local |
| DB parameter change | model-registry-db-parameters ConfigMap | use the model_registry database and port 3306 |
| nodeSelector added | model-registry-deployment, model-registry-ui | pin the registry server and UI to a specific node pool |
| Namespace reader not included | model-registry-ui RBAC | the kubeflow UI overlay has no namespaces list permission, so the Register and store namespace dropdown can fail |
Deployment view
Section titled “Deployment view”Resource Placement
Section titled “Resource Placement”| Namespace | Resource | Name | Purpose |
|---|---|---|---|
kubeflow-user-example-com | Deployment + Service | model-registry-deployment, model-registry-service | Model Registry REST API |
kubeflow-user-example-com | ExternalName Service | model-registry-db | DNS alias of the shared ps-db-haproxy Service |
kubeflow-user-example-com | Deployment + ServiceAccount + Service | model-registry-ui, model-registry-ui | Model Registry UI in Dashboard |
kubeflow-user-example-com | VirtualService | model-registry | /api/model_registry/ API routing |
kubeflow-user-example-com | VirtualService | model-registry-ui | /model-registry/ UI routing |
kubeflow-user-example-com | AuthorizationPolicy | model-registry-service, model-registry-ui | allow authenticated traffic from the ingressgateway |
mysql | Percona MySQL Cluster | ps-db | provides the model_registry database and role |
| (cluster) | ClusterStorageContainer | model-registry-storage-initializer | handle KServe model-registry:// URIs |
| (cluster) | ClusterRole + ClusterRoleBinding | model-registry-ui-* | UI Service lookup, ClusterRoleBinding lookup, SubjectAccessReview creation |
The registry API, UI, database alias, VirtualServices, and storage initializer span the Profile namespace, the gateway routing layer, and the cluster-scoped KServe extension point.
Diagram
Section titled “Diagram”PlantUML source:
Runtime flow
Section titled “Runtime flow”Model metadata lookup through the UI/API
Section titled “Model metadata lookup through the UI/API”When a user enters through the Dashboard Model Registry menu, the /model-registry/ path is routed to the Model Registry UI. The UI calls the registry server’s /api/model_registry/ API, and the server reads the registered model, version, and artifact metadata stored in MySQL and returns them.
PlantUML source:
KServe model-registry:// artifact preparation
Section titled “KServe model-registry:// artifact preparation”When a KServe InferenceService uses storageUri: model-registry://..., KServe matches it against the supported URI prefix of the cluster-scoped ClusterStorageContainer. A storage-initializer is then attached to the predictor Pod, and the initializer resolves artifact information through the Model Registry API and prepares the artifact in a location the model server can read.
PlantUML source:
Dependencies and interactions
Section titled “Dependencies and interactions”Prerequisites / downstream
Section titled “Prerequisites / downstream”- Prerequisites:
namespace, cert-manager, Istio,kubeflow-gateway, oauth2-proxy/ExtAuthZ, the Dashboard menu, User Profile. Applyinghub/csirequires KServe, which provides theClusterStorageContainerCRD, to be installed first. - Downstream: use of KServe
model-registry://storageUri, model registry API calls from the platform backend, the storage overview post. User workflows that need structured model metadata rather than raw paths also depend on it. - Related posts: the Profile namespace prerequisite is covered in User Profile, token-based calls from the platform backend in Multi-tenancy, and KServe artifact preparation and serving in KServe.
Runtime interaction
Section titled “Runtime interaction”Dashboard users come in through the /model-registry/ UI, and the registry API comes in through the /api/model_registry/ path. Both paths pass through kubeflow-gateway, and external requests are forwarded to the Model Registry UI/server in the Profile namespace after passing gateway authentication.
Pinning to a node pool with nodeSelector
Section titled “Pinning to a node pool with nodeSelector”The registry server and UI Pods are placed only on a specific node pool with nodeSelector. The purpose is to keep Kubeflow control plane workloads on a different set of nodes from user training/serving workloads.
The label key is not a Kubernetes standard; it is a value attached by the platform that creates the node pool, so it differs per environment. For example, AKS attaches the node pool name as the agentpool label, so a selector like agentpool: kubeflow is used there, but other environments must use their own labels (on a self-managed cluster, a node-role style label or a label you applied yourself). The following is only an example.
spec: template: spec: nodeSelector: agentpool: kubeflow # platform 별 node pool label 예시When moving to another environment, check the actual node labels with kubectl get nodes --show-labels and change the key/value.
metadata store
Section titled “metadata store”The Model Registry server stores metadata in MySQL. This DB is not a user artifact object storage but the registry metadata store. Where the actual model binary lives is carried through the artifact metadata and the KServe storage initializer flow.
model-registry-db is not a MySQL Pod but an ExternalName Service. The DNS lookup result points to
ps-db-haproxy.mysql.svc.cluster.local, and the TCP connection and MySQL protocol go directly
from the Model Registry server to the Percona HAProxy Service. An externalName target has
no port forwarding or proxy function.
The registry never references the shared Percona MySQL cluster in the mysql namespace directly, but always through the model-registry-db alias in the Profile namespace.
The CSI initializer is a cluster-scoped resource, but the registry instance in this deployment is in the kubeflow-user-example-com Profile namespace. The upstream README describes specifying the target namespace in a multi-profile environment with the model-registry://...?namespace=<namespace> query parameter. If multiple registries are run per Profile namespace, this must be included in the URI writing rules.
Key resources
Section titled “Key resources”model-registry-deployment: Model Registry REST API server. Uses theghcr.io/kubeflow/hub/server:v0.3.9image.model-registry-db: ExternalName Service pointing to the sharedps-db-haproxyService (MySQL ExternalName alias).model_registrydatabase: registry logical database managed by Percona MySQL (metadata persistence).model-registry-ui: the Dashboard/model-registry/UI. Has RBAC for Service lookup, ClusterRoleBinding lookup, and SubjectAccessReview creation.model-registryVirtualService: routes/api/model_registry/to the registry server.model-registry-uiVirtualService: routes/model-registry/to the UI Service and addsx-forwarded-prefix: /model-registry.model-registry-storage-initializer: KServeClusterStorageContainerthat handles themodel-registry://URI prefix.
Inspect the registry Deployment, UI, database alias, VirtualServices, and ClusterStorageContainer when troubleshooting registry behavior.
References
Section titled “References”- overlay:
overlays/dev/kubeflow/overlays/hub/registry - overlay:
overlays/dev/kubeflow/overlays/hub/csi - upstream:
applications/hub/upstream - Related posts: