Kubeflow is an open-source machine learning platform built on Kubernetes that turns notebooks, training jobs, hyperparameter searches, pipelines and model servers into containerized, declaratively managed workloads. In MLOps & deployment, it serves as the orchestration layer that lets a team move a model from an experiment to a repeatable production workflow on its own cluster, in a public cloud or on premises.
The project started at Google in 2017 as a way to run TensorFlow jobs on Kubernetes and is now a Cloud Native Computing Foundation project with a modular design. Most teams do not adopt all of it; they use Kubeflow Pipelines as a workflow engine, add the training and tuning operators where they need distributed compute, and connect serving and registry components as their maturity grows.
How Kubeflow runs machine learning on Kubernetes
Kubeflow works by extending Kubernetes with custom resources and controllers that understand machine learning tasks. Instead of writing raw pod specifications, an engineer submits an object such as a PyTorchJob or a pipeline run, and a controller reconciles it into pods, services and volumes, restarts failed workers and records status.
A pipeline is authored in Python with the KFP SDK, where each step is a component with typed inputs and outputs. The SDK compiles the pipeline into an intermediate representation in YAML, and the backend, usually Argo Workflows, executes every step as its own container. Parameters, artifacts and execution records are written to a metadata store, which gives each run a traceable lineage from dataset to model artifact.
Isolation comes from Kubernetes itself. Profiles map users or teams to namespaces, and an Istio service mesh with an identity provider such as Dex enforces authentication, so several teams can share one cluster with separate quotas and permissions.
Pipelines also support caching of step results. When a component runs again with identical inputs and the same container image, the backend can reuse the earlier output, which saves hours of compute in iterative experiments but must be disabled for steps with side effects such as reading the latest data from a live source.
Core components and what each one does
Kubeflow is a collection of loosely coupled components, and each one can be installed on its own. The table below summarizes the main building blocks and the task each one covers.
| Component | Purpose | Typical output |
|---|---|---|
| Kubeflow Pipelines | Define, schedule and track multistep ML workflows | Pipeline runs with lineage and artifacts |
| Notebooks | Launch Jupyter, VS Code or RStudio servers in the cluster | Interactive development environments |
| Katib | Hyperparameter tuning, early stopping and neural architecture search | Best trial configuration |
| Training Operator | Distributed training for PyTorch, TensorFlow, XGBoost and others | Trained model checkpoints |
| KServe | Serverless model inference with autoscaling and canary rollout | Prediction endpoints |
| Model Registry | Catalog model versions with metadata | Registered, versioned models |
| Central Dashboard | Web interface across components | Unified view per namespace |
KServe began inside Kubeflow as KFServing and now evolves as a separate project, yet it remains the default serving option in most Kubeflow distributions. The Spark Operator has also joined the project for data processing jobs.
Kubeflow compared with other MLOps platforms
Kubeflow differs from managed platforms mainly in who operates the infrastructure. It gives full control and portability across clouds, while managed services trade that control for lower operational effort.
| Tool | Operating model | Main strength | Main trade-off |
|---|---|---|---|
| Kubeflow | Self-managed on Kubernetes | Portable, full-lifecycle platform | High operational burden |
| Vertex AI Pipelines | Managed Google Cloud service | Runs KFP v2 pipelines without a cluster | Tied to one cloud |
| Amazon SageMaker | Managed AWS service | Integrated training and hosting | Vendor lock-in and cost model |
| Metaflow | Python library with pluggable backends | Developer ergonomics | Fewer built-in serving features |
| ZenML | Framework over many orchestrators | Stack abstraction | Depends on the chosen backend |
| TFX | Library of pipeline components | Data validation and analysis | Strong TensorFlow orientation |
An important detail is that the KFP v2 pipeline format is portable: the same compiled YAML can run on a self-hosted Kubeflow cluster or on Vertex AI Pipelines, which reduces lock-in for teams that start on a managed service.
When to choose Kubeflow and how to adopt it
Kubeflow fits best when an organization already runs Kubernetes in production and needs shared, governed ML infrastructure for several teams. The decision table below links common situations to a recommended approach.
| Situation | Recommended choice | Reason |
|---|---|---|
| Platform team with Kubernetes skills | Full Kubeflow deployment | Shared tenancy and full lifecycle |
| Small team, one cloud | Managed service or Vertex AI Pipelines | Avoids cluster operations |
| Only workflow orchestration needed | Standalone Kubeflow Pipelines | Smaller footprint |
| Large distributed training jobs | Training Operator plus Katib | Gang scheduling and tuning |
| Strict data residency or air-gapped site | Self-hosted Kubeflow | Runs fully on premises |
Adoption usually goes through a packaged distribution from a cloud or platform vendor, or through the community manifests installed with Kustomize. A sound path is to start with Pipelines and Notebooks, define reusable components, and add tuning, serving and the registry once the first workflows are stable.
Limitations and common mistakes
The main limitation of Kubeflow is operational complexity. A full installation includes dozens of services, and upgrades across Kubernetes, Istio and Kubeflow versions require careful testing. Teams without dedicated platform engineers often struggle to keep it healthy.
- Installing everything at once creates a large surface to maintain before any value is delivered.
- Packing large datasets into pipeline parameters instead of passing artifacts through object storage slows runs and fills the metadata database.
- Ignoring resource requests and GPU quotas lets one experiment starve other namespaces.
- Treating Kubeflow as a monitoring tool; drift detection and ML observability need separate tools.
- Writing components without pinned container images, which breaks ML reproducibility.
A further misconception is that Kubeflow removes the need for data versioning and testing discipline. It records which artifacts a run consumed, but it does not decide whether the data was correct. Mature teams combine it with a data versioning tool, automated ML tests and a promotion policy, so that a pipeline run that finishes successfully is not automatically treated as a model ready for production.
Explained without jargon
Kubeflow is a toolkit for running machine learning work on shared servers. Kubernetes already knows how to start and stop programs on many machines. Kubeflow teaches it the specific jobs of machine learning.
Think of a factory assembly line for models. Each station does one task, such as cleaning data, training or testing. Kubeflow moves the work from station to station, keeps a record of every step and lets many teams use the same factory safely.
A typical use case
A retail company runs demand forecasting models for 400 stores. Its platform team operates a Kubernetes cluster with GPU nodes and installs Kubeflow so that three data science teams can work in separate namespaces with their own quotas.
Each night a Kubeflow pipeline retrains the forecasting model: it pulls fresh sales data, validates it, launches a distributed PyTorch job, and compares the new model with the current one on a holdout week. Katib runs a weekly search over learning rate and window length. When a new model wins, it is registered and deployed through KServe as a canary receiving 10 percent of traffic.
The outcome is a repeatable nightly retraining cycle with full lineage. When forecast errors rose after a holiday, analysts traced the cause to a specific input dataset in minutes instead of days.