Skip to content

Hub (Model Registry)

Interactive Diagram

새 탭 ↗
ItemValue
VersionHub / Model Registry v0.3.9
Official docsKubeflow Model Registry
Upstream sourceapplications/hub/upstream

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.

Overview of where Model Registry sits between training and serving, managing registered model, model version, and model artifact metadata Source: Kubeflow docs, Model Registry Architecture, The Kubeflow Authors, CC BY 4.0

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.

  • Model Registry server: model-registry-deployment provides the REST API and stores model metadata in MySQL.
  • MySQL metadata store: the model-registry-db ExternalName Service points to ps-db-haproxy.mysql.svc.cluster.local and uses the model_registry database in the shared MySQL.
  • Model Registry UI: model-registry-ui provides 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 ClusterStorageContainer handles model-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 the mysql namespace, used through the namespace-local ExternalName alias (model-registry-db).

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.

LayerResponsibilityMain resources
Model Registry serverregistered models, model versions, artifact metadata APImodel-registry-deployment, model-registry-service
Model Registry DBstores registry metadatashared Percona MySQL, Service/model-registry-db
Model Registry UIregistry user screen inside Dashboardmodel-registry-ui, model-registry-ui-service
KServe CSI initializertranslates model-registry:// URIs into model artifact downloadsClusterStorageContainer/model-registry-storage-initializer

The registry provides metadata and references rather than a second binary artifact store.

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.

  • Model lifecycle metadata: manages registered models, versions, and artifact metadata in one place.
  • Dashboard integration: the Central Dashboard Model Registry menu 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_registry database and model_registry role.

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.

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.

FeatureWhat it needsCurrent deployment status
RegisterModel Registry server API, MySQL metadata DB, an accessible artifact URISupported
Register and storenamespace lookup permission for the UI, transfer/storage controller, related RBAC and runtime verificationNot 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 storageUri and metadata;
  • KServe consumes the final registry reference later.

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/csi
Apply unitMain contentsReason
hub/registryModel Registry server, UI, Istio VirtualService/DestinationRule/AuthorizationPolicy, shared MySQL client settingsconnect the registry API/UI in the Profile namespace to the shared DB
hub/csiClusterStorageContainer/model-registry-storage-initializerKServe must resolve model-registry:// URIs cluster-wide
Not appliedapplications/hub/upstream/options/controllerthe Register and store transfer/storage flow is outside the current scope
AdjustmentTargetReason
Namespace overridedev registry kustomizationinstall the registry server/UI into the kubeflow-user-example-com Profile namespace
Gateway FQDN fixmodel-registry, model-registry-ui VirtualServicethe VirtualServices in the Profile namespace must refer to kubeflow/kubeflow-gateway exactly
Destination host FQDN fixDestinationRule and VirtualService destinationsthe Services moved into the kubeflow-user-example-com namespace, so the FQDNs must match
Own DB removalmodel-registry-db Deployment, metadata-mysql PVCconsolidate per-component MySQL and PVCs into the shared Percona Cluster
DB Service aliasmodel-registry-db Servicekeep the existing application host name while resolving DNS to ps-db-haproxy.mysql.svc.cluster.local
DB parameter changemodel-registry-db-parameters ConfigMapuse the model_registry database and port 3306
nodeSelector addedmodel-registry-deployment, model-registry-uipin the registry server and UI to a specific node pool
Namespace reader not includedmodel-registry-ui RBACthe kubeflow UI overlay has no namespaces list permission, so the Register and store namespace dropdown can fail
NamespaceResourceNamePurpose
kubeflow-user-example-comDeployment + Servicemodel-registry-deployment, model-registry-serviceModel Registry REST API
kubeflow-user-example-comExternalName Servicemodel-registry-dbDNS alias of the shared ps-db-haproxy Service
kubeflow-user-example-comDeployment + ServiceAccount + Servicemodel-registry-ui, model-registry-uiModel Registry UI in Dashboard
kubeflow-user-example-comVirtualServicemodel-registry/api/model_registry/ API routing
kubeflow-user-example-comVirtualServicemodel-registry-ui/model-registry/ UI routing
kubeflow-user-example-comAuthorizationPolicymodel-registry-service, model-registry-uiallow authenticated traffic from the ingressgateway
mysqlPercona MySQL Clusterps-dbprovides the model_registry database and role
(cluster)ClusterStorageContainermodel-registry-storage-initializerhandle KServe model-registry:// URIs
(cluster)ClusterRole + ClusterRoleBindingmodel-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.

PlantUML source:

PlantUML Diagram

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:

PlantUML Diagram

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:

PlantUML Diagram
  • Prerequisites: namespace, cert-manager, Istio, kubeflow-gateway, oauth2-proxy/ExtAuthZ, the Dashboard menu, User Profile. Applying hub/csi requires KServe, which provides the ClusterStorageContainer CRD, 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.

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.

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.

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.

  • model-registry-deployment: Model Registry REST API server. Uses the ghcr.io/kubeflow/hub/server:v0.3.9 image.
  • model-registry-db: ExternalName Service pointing to the shared ps-db-haproxy Service (MySQL ExternalName alias).
  • model_registry database: 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-registry VirtualService: routes /api/model_registry/ to the registry server.
  • model-registry-ui VirtualService: routes /model-registry/ to the UI Service and adds x-forwarded-prefix: /model-registry.
  • model-registry-storage-initializer: KServe ClusterStorageContainer that handles the model-registry:// URI prefix.

Inspect the registry Deployment, UI, database alias, VirtualServices, and ClusterStorageContainer when troubleshooting registry behavior.

  • overlay: overlays/dev/kubeflow/overlays/hub/registry
  • overlay: overlays/dev/kubeflow/overlays/hub/csi
  • upstream: applications/hub/upstream
  • Related posts: