← All insightsAutomation

Automating Kubeflow from scratch

CodeWizard Academy · 14 September 2025 · 3 min read · Intermediate

Anything you do to Kubeflow twice should be automated. This walks the path from a manual install to a repeatable, pipeline-driven setup.

1. Install it reproducibly

bash
# Install Pipelines standalone on an existing cluster
export PIPELINE_VERSION=2.2.0
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"

2. Describe the desired state

A minimal pipeline with the KFP SDK.

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

3. Run it from CI

Compile pipelines in CI to catch errors early.

yaml
- run: pip install kfp && python pipeline.py  # compiles to 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.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult