Run and View Kubeflow Pipeline

To run the Kubeflow Pipeline you must call the .py file from the command line. Test your code before deploying as a Kubeflow Pipeline to make sure Kale tags were added properly.

Tip

Please follow along in your own copy of our notebook as we complete the steps below.

1. Open a new terminal

Select Terminal from the launcher to open a new terminal

#

2. Test the Kale tags in the .py file

Navigate to the host directory and run the script locally to test if your code can compile the kale tags successfully:

python3 -m kale kale_sdk.py

You will see a response as shown below:

#

3. Deploy Code as Kubeflow Pipeline

Execute the following to deploy the code as a Kubeflow Pipeline. The use of --kfpcdeploys the code as a KubeflowcPipeline.

python3 -m kale kale_sdk.py --kfp

You will see a response as shown below:

4. Review Pipeline Execution

Navigate to the Kubeflow UI and open the Runs UI

5. Access the pipeline run

Select the binary-classification run to see the Kubeflow Pipeline.

The green checkmarks indicate that the Kubeflow Pipeline was deployed and executed successfully. We recommend testing your code locally, as you did in this course, before deploying to minimize troubleshooting complexity.

If you would like to download the most up-to-date code you can do so by clicking here.