How to Kickstart Kubeflow Pipeline development in Python

267 Views Asked by At

I have been studying about Kubeflow and trying to grasp how do I write my first hollo world program in it and run locally on my mac. I have kfp and kubectl installed locally on my machine. For testing purpose I want to write a simple pipeline with two functions: get_data() and add_data(). The doc is overwhelming that I am not clear how to program locally without k8s installed, connecting remote GCP machine and debug locally before creating zip and upload or there way to execute code locally and see how is it running on Google cloud?

2

There are 2 best solutions below

0
On

Currently you need Kubernetes to run KFP pipelines.

The easiest way to deploy KFP is when you use the Google Cloud Marketplace

Alternatively you can locally install Docker Desktop which includes Kubernetes and install standalone version of KFP on it.

After that you can try this tutorial: Data passing in python components

0
On

Actually you can install a reduced version of kubeflow with minikf. More info https://www.kubeflow.org/docs/distributions/minikf/minikf-vagrant/

Check whether you are using kubeflow pipelines from the google cloud marketplace, or a custom kubernetes cluster. If you are using the managed one, you can see your pipeline running through the kubeflow pipelines management console.

for details about how to create components based on functions, you can check https://www.kubeflow.org/docs/components/pipelines/sdk/python-function-components/#getting-started-with-python-function-based-components