Use Reusable Kubeflow Pipeline Components
Alauda AI packages reusable components from the mirrored
pipelines-components
project with Kubeflow Pipelines 2.16.1. A Kubeflow Pipelines installation
preloads two beta AutoGluon pipelines:
The managed pipelines are the shortest path to a complete training run. You can also clone the mirror and import individual components when you need a custom pipeline DAG.
The current pipeline runtime and several Kubeflow Pipelines service images are
available for linux/amd64 only. The DSPO manager can install on an arm64
cluster, but a DataSciencePipelinesApplication cannot become ready there.
Run these pipelines on x86 worker nodes.
TOC
PrerequisitesCreate the input-storage SecretRun a managed tabular pipelineRun a managed time-series pipelineCompose a custom pipeline from the mirrorTroubleshootingPrerequisites
The input bucket can differ from the object store configured as the KFP artifact store. The Secret below authenticates the data loader to the input bucket; KFP supplies artifact-store credentials to its launcher separately.
Create the input-storage Secret
Create the Secret in the pipeline run namespace:
Keep the URI scheme in AWS_S3_ENDPOINT. The component passes this value to
the S3 client as its endpoint URL.
Upload the training file to the bucket before starting the run. For example, the following tabular input has two features and a regression label:
Tabular data must contain at least 100 valid rows after duplicate rows, invalid labels, and other unusable values are removed.
Run a managed tabular pipeline
- Open Kubeflow Pipelines and select Pipelines.
- Search for
autogluon-tabular-training-pipelineand select its latest version. - Select Create run, choose the namespace containing the Secret, and set the inputs:
- Start the run and follow the data-loader and model-training tasks in the run graph.
The pipeline samples and splits the source data, trains and ranks AutoGluon
models, and refits the best top_n models. Training splits are shared through
the run's workspace PVC. The test split, leaderboard, model predictors,
metrics, and generated inference notebooks are KFP artifacts persisted in the
configured artifact store.
Run a managed time-series pipeline
Select autogluon-timeseries-training-pipeline and provide the common storage
inputs described above. Its time-series-specific inputs are:
The loader deduplicates ID/timestamp pairs and performs a temporal split for each series. It writes the working train splits to the workspace PVC and the test split and trained models to the artifact store.
Compose a custom pipeline from the mirror
The kfp-components package is not published to PyPI. Clone the Alauda mirror
and install it in a Python 3.11 or later virtual environment. Pin the SDK to the
version shipped by Alauda AI:
This example imports the tabular data loader and uses it in a smaller custom pipeline. Replace the image with the AutoML runtime mirrored into your cluster:
Upload custom-tabular-loader.yaml from the Kubeflow Pipelines UI, or submit
it with the KFP SDK. Review the component's README.md, metadata.yaml, and
tests in the mirror before using another asset; the repository contains alpha
and beta assets with different external-service requirements.
Troubleshooting
- Secret not found: Secrets are namespace-scoped. Create the input Secret in the same namespace as the run.
- Workspace PVC remains Pending: Configure a default storage class that
supports
ReadWriteOnce, or ask the platform administrator to configure the KFP workspace storage class. - Run remains Pending: Compare available cluster resources with the CPU and
memory requests in Prerequisites. Start with
preset=speed. - Input object cannot be read: Check the endpoint scheme, bucket and object key, credentials, region, network policy, and the S3 server certificate.
- Artifacts are missing after pods finish: The pipeline input Secret does not configure KFP persistence. Check the KFP installation's artifact-store endpoint and credentials with the platform administrator.