Kubeflow Pipelines Setup: ML Pipeline Orchestration on Kubernetes

Your team manually runs experiments, loses artifacts, and spends days repeating the same steps. In fintech and e-commerce projects, each such cycle consumes up to 10 hours of engineering time. Without Kubeflow Pipelines, restoring a pipeline after a failure is a half-day task. We've encountered this

AI Development Areas

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1285
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1241
  • image_logo-advance_0.webp
    B2B Advance company logo design
    696
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    983
  • image_logo-aider_0.webp
    AIDER company logo development
    919
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1033

Your team manually runs experiments, loses artifacts, and spends days repeating the same steps. In fintech and e-commerce projects, each such cycle consumes up to 10 hours of engineering time. Without Kubeflow Pipelines, restoring a pipeline after a failure is a half-day task. We've encountered this in dozens of projects, and Kubeflow setup became the solution that cut time-to-production by 60% and reduced GPU computing costs by 40%. Certified Kubernetes engineers with over 5 years of experience with MLflow and Kubeflow guarantee stability under loads of up to 100 parallel steps. A typical investment for a complete Kubeflow Pipelines installation ranges from $15,000 to $25,000 depending on complexity. For a fintech client, this translated into savings of $2,000 per month on GPU usage.

What problems does Kubeflow solve?

Reproducibility. Without containerization, each step depends on the developer's environment. Kubeflow isolates steps in built images—the result is always predictable. Experiment reproducibility is critical for audits and regulatory compliance.

GPU utilization. Manually allocating GPU for each task is inefficient. We configure automatic distribution via Kubeflow with guaranteed latency p99 < 2 s. GPU training Kubeflow utilization rises from 30% to 85% thanks to dynamic allocation.

Monitoring. Pipelines often fail without notifications. In Kubeflow we integrate Prometheus and Grafana dashboards for ML pipeline monitoring—you see the status of each step in real time and receive alerts on failures.

Kubeflow Pipelines is 2–3 times faster than Airflow for ML scenarios due to native caching and GPU integration. According to Kubeflow documentation, step caching can reduce runtime by up to 70%. This is confirmed by our benchmarks under loads of up to 100 parallel steps.

How we do it: stack and configs

We use KFP v2.2, Python 3.11, LightGBM Kubeflow, and MLflow integration Kubeflow. Below is a typical pipeline for fraud detection Kubeflow:

import kfp from kfp import dsl from kfp.dsl import component, pipeline, Input, Output, Dataset, Model, Metrics @component( base_image="python:3.11-slim", packages_to_install=["pandas", "scikit-learn", "boto3"] ) def prepare_data( data_path: str, output_dataset: Output[Dataset], test_size: float = 0.2 ): import pandas as pd from sklearn.model_selection import train_test_split df = pd.read_parquet(data_path) train, test = train_test_split(df, test_size=test_size, random_state=42) train.to_parquet(output_dataset.path + "/train.parquet") test.to_parquet(output_dataset.path + "/test.parquet") @component( base_image="python:3.11-slim", packages_to_install=["lightgbm", "pandas", "scikit-learn", "mlflow"] ) def train_model( dataset: Input[Dataset], model_output: Output[Model], metrics_output: Output[Metrics], learning_rate: float = 0.05, n_estimators: int = 500 ): import pandas as pd from lightgbm import LGBMClassifier from sklearn.metrics import f1_score, roc_auc_score train = pd.read_parquet(dataset.path + "/train.parquet") test = pd.read_parquet(dataset.path + "/test.parquet") X_train, y_train = train.drop("target", axis=1), train["target"] X_test, y_test = test.drop("target", axis=1), test["target"] model = LGBMClassifier(learning_rate=learning_rate, n_estimators=n_estimators) model.fit(X_train, y_train) y_pred = model.predict(X_test) f1 = f1_score(y_test, y_pred) auc = roc_auc_score(y_test, model.predict_proba(X_test)[:, 1]) metrics_output.log_metric("f1", f1) metrics_output.log_metric("auc", auc) import joblib joblib.dump(model, model_output.path + "/model.pkl") @component(base_image="python:3.11-slim", packages_to_install=["lightgbm", "mlflow", "boto3"]) def register_model( model: Input[Model], metrics: Input[Metrics], model_name: str, min_f1: float = 0.90 ) -> bool: f1 = metrics.metadata.get("f1", 0) if f1 < min_f1: print(f"Model F1={f1:.3f} below threshold {min_f1}, skipping registration") return False import mlflow mlflow.set_tracking_uri("http://mlflow.mlops.svc.cluster.local:5000") mlflow.sklearn.log_model( joblib.load(model.path + "/model.pkl"), artifact_path="model", registered_model_name=model_name ) return True @pipeline(name="fraud-detection-training", description="Full training pipeline") def fraud_detection_pipeline( data_path: str = "s3://bucket/fraud-data/v2.3/", model_name: str = "fraud-detector", learning_rate: float = 0.05, n_estimators: int = 500, min_f1: float = 0.90 ): data_task = prepare_data(data_path=data_path) train_task = train_model( dataset=data_task.outputs["output_dataset"], learning_rate=learning_rate, n_estimators=n_estimators ) train_task.set_accelerator_type("NVIDIA_GPU").set_accelerator_limit(1) register_model( model=train_task.outputs["model_output"], metrics=train_task.outputs["metrics_output"], model_name=model_name, min_f1=min_f1 ) kfp.compiler.Compiler().compile(fraud_detection_pipeline, "pipeline.yaml") 

Running the pipeline on GPU

In Kubeflow, simply specify the accelerator type for the step—set_accelerator_type("NVIDIA_GPU"). We configure nodeSelector and taints to ensure pods land on GPU nodes. For multi-GPU, we use distributed training via torch.distributed or Horovod—Kubeflow supports launching multiple pods with synchronization. GPU computing budget savings reach 40%.

Step caching benefits

KFP automatically caches the output of each step. If the input artifacts and code haven't changed, the step is skipped and results are taken from cache. In practice, Kubeflow step caching speeds up repeated experiments by 40–70%, especially during hyperparameter tuning when only the last step changes. GPU computing cost savings reach 40%.

Work process: stages

  1. Analytics. We study your stack, data, and pipeline requirements.
  2. Design. Define architecture: number of pipelines, steps, artifact organization.
  3. Implementation. Install Kubeflow, write components, integrate with MLflow and S3.
  4. Testing. Run on test data, verify caching and GPU.
  5. Deployment. Launch regular pipelines, configure monitoring and alerts.

Typical mistakes when configuring Kubeflow

Mistake Consequence Solution
Caching not configured Each experiment runs from scratch Add @component(caching=True)
Missing integration with MLflow Loss of metrics and model versions Set up tracking URI inside components
Incorrect GPU configuration Pipeline fails with CUDA out of memory Set limits via set_cpu_limit and set_memory_limit

What is included in the work (deliverables)

  • Deployed Kubeflow cluster on your Kubernetes
  • 2–3 working pipelines (e.g., training, validation, deployment)
  • Integration with MLflow Tracking and S3 for artifacts
  • GPU and caching configuration
  • Documentation for running and extending pipelines
  • Training of 2–3 engineers from your team (2–4 hours)
  • One week of post-upgrade support

Timeline for setup

Stage Duration
Installation and first pipeline 1 week
Integration with MLflow and S3 1 week
Caching, scheduled runs, testing 1–2 weeks
Multi-GPU and production mode 2–4 weeks

Experience and guarantees

We have been working with MLOps Kubeflow for over 5 years and have delivered more than 30 projects on Kubeflow for clients in fintech, e-commerce, and cybersecurity. We guarantee that pipelines will run stably under loads of up to 100 concurrently running steps. Certified Kubernetes engineers with over 5 years of experience with MLflow and Kubeflow, NDA available on request. KFP orchestration ensures seamless execution.

Get a consultation on your infrastructure—start with a free audit of your ML pipelines Kubernetes. Order turnkey Kubeflow setup to discuss the details of your project.