The ML toolkit for Kubernetes - pipelines, training operators and model serving on your cluster. This walkthrough covers the mental model and the configuration you will actually touch.
Kubeflow runs the ML lifecycle on Kubernetes: Pipelines for orchestrating steps, training operators for distributed jobs, and KServe for scalable model serving - reusing your existing cluster and GitOps.
The configuration that matters
A minimal pipeline with the KFP SDK.
from kfp import dsl
@dsl.component
def train(lr: float) -> float:
return 0.94
@dsl.pipeline(name='train-pipeline')
def pipe(lr: float = 0.01):
train(lr=lr)Principles to hold onto
- Start with Pipelines + KServe rather than the whole platform
- Use GPU node pools with quotas and taints
- Enable step caching and version pipeline artifacts
Everyday commands
kubectl -n kubeflow port-forward svc/ml-pipeline-ui 8080:80
# compile and submit
python -c "from kfp import compiler,dsl; compiler.Compiler().compile(pipe,'pipe.yaml')"Want senior help putting Kubeflow to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.