Guide
This addon is for installing Kubeflow Pipeline.
Install
Ensure default StorageClass exists
First check if you cluster has default StorageClass:
kubectl get storageclass
This is what it looks on AlibabaCloud:
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
alicloud-disk-available (default) diskplugin.csi.alibabacloud.com Delete Immediate true 21h
alicloud-disk-efficiency diskplugin.csi.alibabacloud.com Delete Immediate true 21h
If it doesn't, patch the following annotation to your storage class:
kubectl patch storageclass <your-storageclass> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Install Kubeflow Addon
Install it via CLI:
vela addon enable kubeflow-pipeline
Or you can enable it via UI.
Verify
After it is installed, run:
kubectl port-forward -n kubeflow svc/ml-pipeline-ui 8080:80
Then access http://localhost:8080/, you will see:

Run an app
Save the following as app.yaml:
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: test-kfp
spec:
components:
- name: sequential-example
type: upload-kfp
properties:
image: acr.kubevela.net/oamdev/kubeflow-tool
outputDir: /data/kubeflow/
outputName: sequential.tar.gz
buildScript: |-
#!/usr/bin/bash
set -ex
PIPELINE_URL=https://cdn.cncfstack.com/raw.githubusercontent.com/kubeflow/pipelines/master/samples/core/sequential/sequential.py
wget -O sequential.py ${PIPELINE_URL}
dsl-compile --py sequential.py --output /data/kubeflow/sequential.tar.gz
Run:
kubectl apply -f app.yaml
It will automatically downloads the sequential.py sample pipeline,
and builds and uploads it to Kubeflow Pipelines service:
