Skip to content

Kubeflow Pipelines

Interactive Diagram

새 탭 ↗
ItemValue
VersionKubeflow Pipelines v2.16.1
Official docsKubeflow Pipelines
Upstream sourceapplications/pipeline/upstream

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.

  • KFP API/UI: installs the ml-pipeline API server and the ml-pipeline-ui frontend and exposes them on the Dashboard’s /pipeline path.
  • Pipeline CRDs and webhook: provides the pipelines.pipelines.kubeflow.org and pipelineversions.pipelines.kubeflow.org CRDs and the PipelineVersion mutating/validating webhook.
  • Workflow runtime: installs Argo workflow-controller and the Workflow CRD to run Pipeline Runs as Argo Workflows in the Profile namespace.
  • Metadata and artifact backends: the shared MySQL mlpipeline, cachedb, and metadb databases store KFP API state, cache, and MLMD metadata, and SeaweedFS provides S3-compatible artifact storage.
  • Multi-user namespace sync: a Metacontroller DecoratorController watches the Profile namespace label and creates per-namespace KFP ConfigMaps/Secrets.
  • Cache and viewer: cache-server, ml-pipeline-viewer-crd, and ml-pipeline-visualizationserver handle cache hits and artifact/viewer display.
LayerResponsibilityMain resources
Kubeflow PipelinesPipeline API, Run creation, UI, scheduling, persistence, cache, metadata writeml-pipeline, ml-pipeline-ui, ml-pipeline-persistenceagent, ml-pipeline-scheduledworkflow, cache-server
Argo Workflowsactual DAG execution, step Pod creation, workflow state management, artifact repository useworkflow-controller, Workflow, workflow-controller-configmap
Storage backendpipeline DB, MLMD DB, execution cache, artifact object storageshared Percona MySQL, metadata-grpc-deployment, seaweedfs
Profile namespace synccreates per-namespace artifact credentials and launcher settingskubeflow-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.

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.

  • 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/view permissions 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-ui on the /pipeline path.
  • Recurring runs and cache: the ScheduledWorkflow controller and cache-server handle periodic runs, cache reuse, and cached step mutation.

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.local

Artifacts 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.

ItemValue / behaviorMeaning
KFP mode--pipelinesStoreKubernetes=truestores Pipeline/PipelineVersion as Kubernetes resources
KFP version2.16.1API server, UI, persistence agent, scheduled workflow, viewer, visualization image tag
Argo Workflowsworkflow-controller:v3.7.3actual Workflow execution runtime for Pipeline Runs
Metacontrollerv4.11.22creates KFP attachments per Profile namespace
KFP API DBshared MySQL mlpipelinestores ml-pipeline API state such as Run, Experiment, and Job
MLMD DBshared MySQL metadbstores metadata-grpc-deployment execution metadata
Cache DBshared MySQL cachedbstores the execution cache
SeaweedFSchrislusf/seaweedfs:4.00S3-compatible artifact storage
Artifact bucketmlpipelinedefault Pipeline artifact bucket
Default pipeline rootminio://mlpipeline/private-artifacts/<namespace>/v2/artifactsdefault 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 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-launcher ConfigMap defaultPipelineRoot defines the base root URI.
  • The per-namespace artifact-repositories config 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.

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.

  • dbType and the cache driver are mysql.
  • dbHost and mysqlHost are the namespace-local alias mysql.
  • The mysql Service points to ps-db-haproxy.mysql.svc.cluster.local.
  • The three workloads share the username and password of mysql-secret.
  • The KFP application role must have the required privileges on mlpipeline, cachedb, and metadb.

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.

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.

NamespaceResourceNamePurpose
kubeflowDeployment + Serviceml-pipelineKFP API server, Run/Pipeline API, PipelineVersion webhook backend
kubeflowDeployment + Serviceml-pipeline-ui/pipeline UI frontend
kubeflowDeploymentml-pipeline-persistenceagentreflects Workflow status into KFP Run status
kubeflowDeploymentml-pipeline-scheduledworkflowhandles recurring runs and ScheduledWorkflow
kubeflowDeployment + Servicecache-serverKFP step cache lookup and cache Pod mutation
kubeflowExternalName ServicemysqlDNS alias to the Percona HAProxy writer in the mysql namespace
kubeflowDeploymentml-pipeline-viewer-crdcreates artifact viewers based on the Viewer CRD
kubeflowDeployment + Serviceml-pipeline-visualizationservervisualization artifact rendering
kubeflowDeploymentmetadata-writerpipeline metadata write helper
kubeflowDeployment + Servicemetadata-grpc-deployment, metadata-envoy-deploymentML Metadata gRPC endpoint and Envoy
kubeflowDeployment + Serviceworkflow-controllerArgo Workflow reconcile and Pod creation
mysqlPercona MySQL Cluster + Serviceps-db, ps-db-haproxyprovides mlpipeline, cachedb, and metadb
kubeflowExternalName ServiceseaweedfsDNS alias to seaweedfs-s3.seaweedfs.svc.cluster.local
seaweedfsStatefulSetseaweedfs-master, seaweedfs-volume, seaweedfs-filervolume topology, object chunks, filer metadata service
seaweedfsDeployment + Serviceseaweedfs-s3S3 gateway providing 8333 and the KFP-compatible 9000
kubeflowDeployment + Servicemetacontroller, kubeflow-pipelines-profile-controllerProfile namespace attachment reconcile
kubeflowVirtualServiceml-pipeline-ui/pipeline routing on kubeflow-gateway
kubeflowAuthorizationPolicyml-pipeline-ui, ml-pipeline, ml-pipeline-visualizationserver, service-cache-serverallows UI/API/cache/visualization access
Profile namespaceConfigMapkfp-launcher, metadata-grpc-configmap, artifact-repositorieslauncher, MLMD endpoint, and artifact repository settings
Profile namespaceSecretmlpipeline-minio-artifactper-namespace SeaweedFS access key and secret key
(cluster)CRDpipelines.pipelines.kubeflow.org, pipelineversions.pipelines.kubeflow.orgKubernetes native Pipeline/PipelineVersion API
(cluster)CRDworkflows.argoproj.io, scheduledworkflows.kubeflow.org, viewers.kubeflow.orgexecution runtime, scheduled run, and viewer APIs
(cluster)ClusterRolekubeflow-pipelines-edit, kubeflow-pipelines-viewPipeline permissions merged into Kubeflow aggregated RBAC

PlantUML source:

PlantUML Diagram

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.

  1. A user creates a run through the UI or KFP SDK.
  2. ml-pipeline interprets the pipeline specification and parameters.
  3. The API server creates an Argo Workflow in the user’s Profile namespace.
  4. workflow-controller reconciles the Workflow and creates step Pods.
  5. Each step Pod runs the user container together with KFP launcher behavior.
  6. Artifacts and logs are pushed to SeaweedFS.
  7. Execution metadata is written to ML Metadata.
  8. ml-pipeline-persistenceagent observes Workflow state and updates the Run state exposed by KFP.

PlantUML source:

PlantUML Diagram

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:

PlantUML Diagram

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:

PlantUML Diagram
  • 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.

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).

  • 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 /pipeline UI. 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 to seaweedfs-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 to cache-server when a cache-eligible Pod is created.
  • mysql: an ExternalName Service pointing to the Percona ps-db-haproxy writer. The KFP API, cache-server, and MLMD share it.
  • kubeflow-pipelines-edit/view: Pipeline/Run/Workflow permissions merged into the Kubeflow user-facing roles.

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.

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.local
seaweedfs-s3.seaweedfs.svc.cluster.local