Kubeflow Pipelines
Basic information
Section titled “Basic information”| Item | Value |
|---|---|
| Version | Kubeflow Pipelines v2.16.1 |
| Official docs | Kubeflow Pipelines |
| Upstream source | applications/pipeline/upstream |
Concepts and characteristics
Section titled “Concepts and characteristics”Kubeflow Pipelines manages ML workflows through APIs such as Pipeline, PipelineVersion, Run, and ScheduledWorkflow, and the actual execution is carried out through Argo Workflows. Users create a Run through the Dashboard’s /pipeline UI or the KFP SDK/API, and the KFP API server creates an Argo Workflow in the Profile namespace. Workflow Pods run the step container and the KFP launcher, store artifacts in SeaweedFS S3-compatible storage, and record execution metadata in ML Metadata and the KFP DB.
This deployment uses the platform-agnostic-multi-user-k8s-native overlay. The KFP API server therefore runs with --pipelinesStoreKubernetes=true and uses the Pipeline/PipelineVersion CRDs and webhook to manage pipeline definitions as Kubernetes resources.
The Kubernetes native store only changes where Pipeline and PipelineVersion definitions are stored. It does not mean that KFP API state such as Run, Experiment, recurring run, and task status, or MLMD metadata, works without a database. In this deployment KFP API state is stored in the shared MySQL mlpipeline database, the execution cache in cachedb, and MLMD metadata in metadb.
That distinction is one of the most important technical details of this deployment.
What the component establishes
Section titled “What the component establishes”- KFP API/UI: installs the
ml-pipelineAPI server and theml-pipeline-uifrontend and exposes them on the Dashboard’s/pipelinepath. - Pipeline CRDs and webhook: provides the
pipelines.pipelines.kubeflow.organdpipelineversions.pipelines.kubeflow.orgCRDs and the PipelineVersion mutating/validating webhook. - Workflow runtime: installs Argo
workflow-controllerand the Workflow CRD to run Pipeline Runs as Argo Workflows in the Profile namespace. - Metadata and artifact backends: the shared MySQL
mlpipeline,cachedb, andmetadbdatabases store KFP API state, cache, and MLMD metadata, and SeaweedFS provides S3-compatible artifact storage. - Multi-user namespace sync: a Metacontroller
DecoratorControllerwatches the Profile namespace label and creates per-namespace KFP ConfigMaps/Secrets. - Cache and viewer:
cache-server,ml-pipeline-viewer-crd, andml-pipeline-visualizationserverhandle cache hits and artifact/viewer display.
Responsibility split between KFP and Argo
Section titled “Responsibility split between KFP and Argo”| Layer | Responsibility | Main resources |
|---|---|---|
| Kubeflow Pipelines | Pipeline API, Run creation, UI, scheduling, persistence, cache, metadata write | ml-pipeline, ml-pipeline-ui, ml-pipeline-persistenceagent, ml-pipeline-scheduledworkflow, cache-server |
| Argo Workflows | actual DAG execution, step Pod creation, workflow state management, artifact repository use | workflow-controller, Workflow, workflow-controller-configmap |
| Storage backend | pipeline DB, MLMD DB, execution cache, artifact object storage | shared Percona MySQL, metadata-grpc-deployment, seaweedfs |
| Profile namespace sync | creates per-namespace artifact credentials and launcher settings | kubeflow-pipelines-profile-controller, kfp-launcher, artifact-repositories, mlpipeline-minio-artifact |
The API users see is KFP, but the actual step execution is handled by Argo Workflows. When the KFP API server receives a Run and builds the Workflow manifest, the Argo controller creates Pods in that namespace and writes outputs to SeaweedFS according to the artifact repository settings.
KFP is the control plane and user-facing API. Argo is the execution engine underneath it.
Role in Kubeflow
Section titled “Role in Kubeflow”Background
Section titled “Background”Running training workflows repeatedly in Kubeflow takes more than one-off scripts inside a Notebook. It needs pipeline definition versioning, experiment/run history, per-step artifacts, metadata, reruns, scheduling, and cache. Pipelines brings these capabilities inside Kubeflow’s Profile namespaces and RBAC.
Key contributions
Section titled “Key contributions”- Standardized training workflow execution: Pipeline Runs created from the KFP SDK or UI run as Kubernetes native resources and Argo Workflows.
- Profile namespace isolation: users’ Runs and artifact credentials are separated per Profile namespace, and the
kubeflow-pipelines-edit/viewpermissions are merged into Kubeflow aggregated RBAC. - Artifact and metadata tracking: step output artifacts are stored in SeaweedFS, and execution metadata is recorded in MLMD and the KFP DB and viewed in the UI.
- Dashboard integration: the Central Dashboard’s Pipelines menu connects to
ml-pipeline-uion the/pipelinepath. - Recurring runs and cache: the ScheduledWorkflow controller and cache-server handle periodic runs, cache reuse, and cached step mutation.
Deployment structure
Section titled “Deployment structure”Overlay composition
Section titled “Overlay composition”The dev overlay references the upstream KFP multi-user overlay but removes the upstream MySQL and the bundled SeaweedFS workloads. The KFP API, cache-server, and MLMD use the shared Percona MySQL through the mysql ExternalName Service, and artifact traffic is sent to the S3 gateway in the seaweedfs namespace through the seaweedfs ExternalName Service.
overlays/dev/kubeflow/overlays/pipeline -> applications/pipeline/upstream/env/cert-manager/platform-agnostic-multi-user-k8s-native -> base/crds -> env/platform-agnostic-multi-user -> base/webhook -> env/cert-manager/base-webhook-certs
applications/pipeline/upstream/env/platform-agnostic-multi-user -> third-party/metacontroller/base -> base/installs/multi-user -> base/metadata/base + metadata/options/istio -> third-party/argo/installs/cluster -> third-party/seaweedfs/istio
overlay patch/resource -> upstream mysql Deployment/PVC 제거 -> mysql Service -> ps-db-haproxy.mysql.svc.cluster.local -> ml-pipeline -> mysql/mlpipeline -> metadata-grpc -> mysql/metadb -> cache-server -> mysql/cachedb -> bundled seaweedfs Deployment/PVC/정책과 기본 credential 제거 -> seaweedfs Service -> seaweedfs-s3.seaweedfs.svc.cluster.localArtifacts do not live in the MySQL databases. They go to SeaweedFS through an S3-compatible interface. This separates execution metadata persistence from artifact-object storage.
Important config
Section titled “Important config”| Item | Value / behavior | Meaning |
|---|---|---|
| KFP mode | --pipelinesStoreKubernetes=true | stores Pipeline/PipelineVersion as Kubernetes resources |
| KFP version | 2.16.1 | API server, UI, persistence agent, scheduled workflow, viewer, visualization image tag |
| Argo Workflows | workflow-controller:v3.7.3 | actual Workflow execution runtime for Pipeline Runs |
| Metacontroller | v4.11.22 | creates KFP attachments per Profile namespace |
| KFP API DB | shared MySQL mlpipeline | stores ml-pipeline API state such as Run, Experiment, and Job |
| MLMD DB | shared MySQL metadb | stores metadata-grpc-deployment execution metadata |
| Cache DB | shared MySQL cachedb | stores the execution cache |
| SeaweedFS | chrislusf/seaweedfs:4.00 | S3-compatible artifact storage |
| Artifact bucket | mlpipeline | default Pipeline artifact bucket |
| Default pipeline root | minio://mlpipeline/private-artifacts/<namespace>/v2/artifacts | default artifact root per Profile namespace |
| UI route | /pipeline | routing from the Kubeflow gateway to the Pipelines UI |
| User header | kubeflow-userid | header the UI/API use to identify the Kubeflow user |
The minio:// scheme and SeaweedFS
Section titled “The minio:// scheme and SeaweedFS”The storage backend is SeaweedFS, yet the pipeline root URI starts with minio://. That is not a typo or a leftover. minio:// is simply the S3-compatible protocol handle used by the KFP launcher; it does not mean that a separate MinIO deployment exists. The launcher uses this scheme to pick an S3-compatible client, and it takes the actual endpoint and credentials from configuration, not from the URI.
- The namespace’s
kfp-launcherConfigMapdefaultPipelineRootdefines the base root URI. - The per-namespace
artifact-repositoriesconfig determines the endpoint, bucket, key format, and credential Secret that Argo steps use to upload and download artifacts.
So the actual destination of a root starting with minio:// is, in this repository, the SeaweedFS S3 gateway reached through the seaweedfs alias Service, and no separate MinIO installation exists.
Shared MySQL settings
Section titled “Shared MySQL settings”The official KFP 2.16.1 API server, cache-server, and MLMD 1.14.0 all support the MySQL path. The current overlay keeps the upstream MySQL env contract and, in pipeline-install-config-mysql.yaml, pins only the host and databases to the shared MySQL.
dbTypeand the cache driver aremysql.dbHostandmysqlHostare the namespace-local aliasmysql.- The
mysqlService points tops-db-haproxy.mysql.svc.cluster.local. - The three workloads share the
usernameandpasswordofmysql-secret. - The KFP application role must have the required privileges on
mlpipeline,cachedb, andmetadb.
The upstream in-cluster MySQL Deployment, PVC, and ServiceAccount are removed. The API server uses the official ghcr.io/kubeflow/kfp-api-server:2.16.1, and the PostgreSQL custom image and PR-only CRD patch are excluded from the active kustomization.
The PipelineVersion mutating/validating webhook is the application TLS endpoint at ml-pipeline:8443. Requests from the Kubernetes API server carry no Istio workload principal, so the sidecar AuthorizationPolicy blocks them with rbac_access_denied_matched_policy[none]. Only inbound port 8443 of the ml-pipeline Pod is therefore excluded from sidecar interception. Webhook certificate and caBundle validation stay in place, and 8887 and 8888 traffic still goes through the Istio sidecar. Because the control-plane source IP differs per cluster, the ml-pipeline-webhook NetworkPolicy separately allows only 8443/TCP.
After applying shared MySQL, at least the following functions must all pass on a real cluster.
- Pipeline upload and PipelineVersion create/list
- Experiment create/list
- Run create/list/detail and completed-state persistence
- recurring run creation and ScheduledWorkflow processing
- API state retained after Pod restart
- MLMD read/write behavior during real runs
- cache hits and misses through
cache-server - namespace attachment behavior for Profile namespaces
The bundled sample Pipeline of the multi-user Kubernetes native variant is registered without a namespace, so an A namespace is required warning occurs. The sample is not a required control-plane function, so the current overlay removes the API server’s --sampleconfig=/config/sample_config.json argument. This change does not affect Pipelines that users register through the UI, SDK, or GitOps.
MLMD connects to metadb with the mysql_config_* arguments and performs the schema upgrade. cache-server uses cachedb on the same endpoint. Execution, context, artifact write/read, and cache hits therefore have to be verified together with a real Run.
Webhook and certificate
Section titled “Webhook and certificate”The platform-agnostic-multi-user-k8s-native overlay attaches the PipelineVersion mutating/validating webhook to the ml-pipeline API server. The cert-manager annotation injects the caBundle from kubeflow/kfp-api-webhook-cert. The cache webhook, through the cache-webhook-kubeflow MutatingWebhookConfiguration, targets only Pod CREATE requests for Pods labeled pipelines.kubeflow.org/cache_enabled: "true", and it is set to failurePolicy: Ignore so that a cache webhook outage does not block Pod creation.
Deployment view
Section titled “Deployment view”Resource Placement
Section titled “Resource Placement”| Namespace | Resource | Name | Purpose |
|---|---|---|---|
kubeflow | Deployment + Service | ml-pipeline | KFP API server, Run/Pipeline API, PipelineVersion webhook backend |
kubeflow | Deployment + Service | ml-pipeline-ui | /pipeline UI frontend |
kubeflow | Deployment | ml-pipeline-persistenceagent | reflects Workflow status into KFP Run status |
kubeflow | Deployment | ml-pipeline-scheduledworkflow | handles recurring runs and ScheduledWorkflow |
kubeflow | Deployment + Service | cache-server | KFP step cache lookup and cache Pod mutation |
kubeflow | ExternalName Service | mysql | DNS alias to the Percona HAProxy writer in the mysql namespace |
kubeflow | Deployment | ml-pipeline-viewer-crd | creates artifact viewers based on the Viewer CRD |
kubeflow | Deployment + Service | ml-pipeline-visualizationserver | visualization artifact rendering |
kubeflow | Deployment | metadata-writer | pipeline metadata write helper |
kubeflow | Deployment + Service | metadata-grpc-deployment, metadata-envoy-deployment | ML Metadata gRPC endpoint and Envoy |
kubeflow | Deployment + Service | workflow-controller | Argo Workflow reconcile and Pod creation |
mysql | Percona MySQL Cluster + Service | ps-db, ps-db-haproxy | provides mlpipeline, cachedb, and metadb |
kubeflow | ExternalName Service | seaweedfs | DNS alias to seaweedfs-s3.seaweedfs.svc.cluster.local |
seaweedfs | StatefulSet | seaweedfs-master, seaweedfs-volume, seaweedfs-filer | volume topology, object chunks, filer metadata service |
seaweedfs | Deployment + Service | seaweedfs-s3 | S3 gateway providing 8333 and the KFP-compatible 9000 |
kubeflow | Deployment + Service | metacontroller, kubeflow-pipelines-profile-controller | Profile namespace attachment reconcile |
kubeflow | VirtualService | ml-pipeline-ui | /pipeline routing on kubeflow-gateway |
kubeflow | AuthorizationPolicy | ml-pipeline-ui, ml-pipeline, ml-pipeline-visualizationserver, service-cache-server | allows UI/API/cache/visualization access |
| Profile namespace | ConfigMap | kfp-launcher, metadata-grpc-configmap, artifact-repositories | launcher, MLMD endpoint, and artifact repository settings |
| Profile namespace | Secret | mlpipeline-minio-artifact | per-namespace SeaweedFS access key and secret key |
| (cluster) | CRD | pipelines.pipelines.kubeflow.org, pipelineversions.pipelines.kubeflow.org | Kubernetes native Pipeline/PipelineVersion API |
| (cluster) | CRD | workflows.argoproj.io, scheduledworkflows.kubeflow.org, viewers.kubeflow.org | execution runtime, scheduled run, and viewer APIs |
| (cluster) | ClusterRole | kubeflow-pipelines-edit, kubeflow-pipelines-view | Pipeline permissions merged into Kubeflow aggregated RBAC |
Diagram
Section titled “Diagram”PlantUML source:
Runtime flow
Section titled “Runtime flow”Pipeline Run creation and execution
Section titled “Pipeline Run creation and execution”When a user creates a Run through the UI or KFP SDK, the ml-pipeline API server interprets the Pipeline spec and run parameters and creates an Argo Workflow in the Profile namespace. workflow-controller reconciles the Workflow and creates step Pods, and the KFP launcher in each Pod handles user container execution, artifact upload, and metadata recording. ml-pipeline-persistenceagent reads the Workflow status and updates the KFP Run status, which the UI then reads.
- A user creates a run through the UI or KFP SDK.
ml-pipelineinterprets the pipeline specification and parameters.- The API server creates an Argo
Workflowin the user’s Profile namespace. workflow-controllerreconciles the Workflow and creates step Pods.- Each step Pod runs the user container together with KFP launcher behavior.
- Artifacts and logs are pushed to SeaweedFS.
- Execution metadata is written to ML Metadata.
ml-pipeline-persistenceagentobserves Workflow state and updates the Run state exposed by KFP.
PlantUML source:
Profile namespace synchronization
Section titled “Profile namespace synchronization”Namespaces created by the Profile controller carry the pipelines.kubeflow.org/enabled: "true" label. KFP’s kubeflow-pipelines-profile-controller DecoratorController watches namespaces with this label and is designed to create the per-namespace kfp-launcher, metadata-grpc-configmap, artifact-repositories, and mlpipeline-minio-artifact. With the artifact proxy disabled in the current settings, no ml-pipeline-ui-artifact Deployment/Service is created in the namespace.
Those resources establish launcher behavior, MLMD connectivity, and artifact credentials per namespace.
This sync step has one prerequisite. The profile controller’s sync hook needs a SeaweedFS IAM endpoint to issue a dedicated S3 access key per namespace. Without that endpoint, the per-namespace artifact credential Secret mlpipeline-minio-artifact is not created automatically, and the namespace’s artifact upload path stays incomplete. In a setup that uses shared object storage, confirm that an IAM endpoint is available before installing Pipelines.
PlantUML source:
Cache webhook handling
Section titled “Cache webhook handling”When KFP labels a cache-eligible step Pod with pipelines.kubeflow.org/cache_enabled: "true", cache-webhook-kubeflow calls the /mutate endpoint of cache-server during Kubernetes admission. cache-server looks up cachedb in the shared MySQL. On a cache hit, the Pod spec is mutated to use the cached result. On a cache miss or a webhook failure, the step runs as an ordinary step Pod. Because of failurePolicy: Ignore, a cache webhook outage does not directly turn into a workflow execution failure.
PlantUML source:
Dependencies and interactions
Section titled “Dependencies and interactions”Prerequisites / dependents
Section titled “Prerequisites / dependents”- Prerequisites:
namespace, cert-manager, Istio,kubeflow-gateway, oauth2-proxy/ExtAuthZ, Dashboard, Profile controller, Kubeflow aggregated RBAC, shared Percona MySQL, and shared SeaweedFS. - Dependents: Katib, Notebooks, and Trainer can conceptually be connected to Pipeline execution. Most of them, however, are not mandatory dependencies tightly bound to Pipelines in installation order.
- Notebook users often author pipelines from notebook environments, but the Pipelines control plane is independent of the Notebooks bundle.
- Model training workloads can be plain pipeline steps or can invoke components such as Trainer.
- Artifacts in object storage and metadata in MLMD are later consumed by downstream workflows, viewers, and operators.
- Articles to read together: user namespaces and permissions are covered in Multi-tenancy, Profile namespace creation in User Profile, and the Dashboard path and auth flow in Dashboard and Authentication flow.
Runtime interactions
Section titled “Runtime interactions”Dashboard users enter through /pipeline and use ml-pipeline-ui, and the UI calls the API server based on the kubeflow-userid header. The ml-pipeline-ui AuthorizationPolicy allows the istio-ingressgateway principal.
The ml-pipeline AuthorizationPolicy needs to be read more carefully. It does not “allow internal requests that have no kubeflow-userid header”; read that way it would be an authentication bypass. It is an anti-spoofing rule that lets through only callers on the allowed principal list, and among those excludes requests where the client set kubeflow-userid itself. kubeflow-userid is a header the gateway is supposed to attach as the result of authentication, so this blocks a path where an arbitrary workload inside the mesh sets the header directly and impersonates another user.
rules: - from: - source: principals: - cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account - cluster.local/ns/kubeflow/sa/ml-pipeline - cluster.local/ns/kubeflow/sa/ml-pipeline-ui - cluster.local/ns/kubeflow/sa/ml-pipeline-persistenceagent - cluster.local/ns/kubeflow/sa/ml-pipeline-scheduledworkflow - cluster.local/ns/kubeflow/sa/ml-pipeline-viewer-crd-service-account when: - key: request.headers[kubeflow-userid] notValues: ["*"]from.source.principals trusts only the ingressgateway and the KFP internal ServiceAccounts, and the when condition on request.headers[kubeflow-userid] with notValues: ["*"] rejects requests that already carry that header. Requests that need a user identity have to come in through the gateway path.
Pipeline steps run in the Profile namespace, but the control plane is in the kubeflow namespace. The per-namespace artifact-repositories ConfigMap and mlpipeline-minio-artifact Secret are therefore required. Without these resources, the Workflow cannot find the artifact repository credentials, or artifact upload/read fails.
The current S3 gateway is opened as a ClusterIP Service in the seaweedfs namespace, and no separate NetworkPolicy is rendered. Multi-user isolation depends on per-namespace S3 access keys and prefix policies. Shared object storage therefore needs an IAM endpoint through which the profile controller can issue access keys and policies. For details, see Shared data services (MySQL and Object Storage).
Key resources
Section titled “Key resources”ml-pipeline: the KFP API server. It handles the Pipeline/Run API, the Kubernetes native pipeline store, and the PipelineVersion webhook backend.ml-pipeline-ui: the Dashboard’s/pipelineUI. It uses the user header and the KFP API to view Pipelines, Runs, and artifacts.workflow-controller: the Argo Workflow controller. It runs Workflows created in Profile namespaces as step Pods.kubeflow-pipelines-profile-controller: the Metacontroller hook. It creates KFP ConfigMaps/Secrets per Profile namespace.artifact-repositories: the per-namespace artifact repository settings used by Argo. It holds the SeaweedFS endpoint, bucket, keyFormat, and Secret reference.kfp-launcher: the per-namespace default pipeline root and cluster domain settings used by the KFP launcher.mlpipeline-minio-artifact: the per-namespace SeaweedFS credential Secret.seaweedfs: an ExternalName Service pointing toseaweedfs-s3.seaweedfs.svc.cluster.local. It keeps KFP’s existing 8333/9000 hostname contract.pipeline-install-config: KFP installation settings such as DB host, bucket, cache, artifact retention, and defaultPipelineRoot.cache-webhook-kubeflow: the admission webhook that delegates mutation tocache-serverwhen a cache-eligible Pod is created.mysql: an ExternalName Service pointing to the Perconaps-db-haproxywriter. The KFP API, cache-server, and MLMD share it.kubeflow-pipelines-edit/view: Pipeline/Run/Workflow permissions merged into the Kubeflow user-facing roles.
References
Section titled “References”- overlay:
overlays/dev/kubeflow/overlays/pipeline - upstream:
applications/pipeline/upstream/env/cert-manager/platform-agnostic-multi-user-k8s-native - upstream:
applications/pipeline/upstream/base/installs/multi-user - Related articles:
Kubeflow Pipelines is one of the heaviest control-plane components in the stack because it bridges authoring, execution, metadata, caching, and artifact storage. In this repository it uses Kubernetes-native storage for pipeline definitions, Argo Workflows for execution, shared MySQL for state and metadata, and shared SeaweedFS for artifacts. The biggest thing to remember is that Kubernetes-native pipeline storage does not remove the database requirement for the rest of the system.
Additional configuration examples
Section titled “Additional configuration examples”The following examples document the configuration contract used by the Pipeline deployment.
overlays/dev/kubeflow/overlays/pipeline -> applications/pipeline/upstream/env/cert-manager/platform-agnostic-multi-user-k8s-native -> base/crds -> env/platform-agnostic-multi-user -> base/webhook -> env/cert-manager/base-webhook-certs
applications/pipeline/upstream/env/platform-agnostic-multi-user -> third-party/metacontroller/base -> base/installs/multi-user -> base/metadata/base + metadata/options/istio -> third-party/argo/installs/cluster -> third-party/seaweedfs/istio
overlay patch/resource -> remove upstream mysql Deployment/PVC -> change mysql Service into shared Percona alias -> configure ml-pipeline for database mlpipeline -> configure metadata-grpc for database metadb -> configure cache-server for database cachedb -> remove bundled seaweedfs Deployment/PVC/policies and default credentials -> change seaweedfs Service into alias for seaweedfs-s3.seaweedfs.svc.cluster.localseaweedfs-s3.seaweedfs.svc.cluster.local