RClone Storage Initializer - testing new secret format

In this documentation page we provide an example upgrade path from kfserving-based to rclone-based storage initializer. This is required due to the fact that secret format expected by these two storage initializers is different.

Storage initializers are used by Seldon's pre-packaged model servers to download models binaries. As it is explained in the SC 1.8 upgrading notes the seldonio/rclone-storage-initializer became default storage initializer in v1.8.0.

In this tutorial we will show how to upgrade your configuration to new Storage Initializer with focus on getting the new format of a required secret right.

Read more:

Prerequisites

  • A kubernetes cluster with kubectl configured

  • mc client

  • curl

Steps in this tutorial

  • Copy iris model from GCS into in-cluster minio and configure old-style storage initializer secret

  • Deploy SKlearn Pre-Packaged server using kfserving storage initializer

  • Discuss upgrading procedure and tips how to test new secret format

  • Deploy Pre-packaged model server using rclone storage initializer

Setup Seldon Core

Use the setup notebook to Setup Cluster with Ambassador Ingress and Install Seldon Core.

Setup MinIO

Use the provided notebook to install Minio in your cluster and configure mc CLI tool.

Copy iris model into local MinIO

Deploy SKLearn Server with kfserving-storage-initializer

First we deploy the model using kfserving-storage-initializer. This is using the default Storage Initializer for pre Seldon Core v1.8.0.

Preparing rclone-compatible secret

The rclone-based storage initializer expects one to define a new secret. General documentation credentials hadling can be found here with constantly updated examples of tested configurations.

If we do not have yet an example for Cloud Storage solution that you are using, please, consult the relevant page on RClone documentation.

Preparing seldon-rclone-secret

Knowing format of required format of the secret we can create it now

Testing seldon-rclone-secret

Before deploying SKLearn server one can test directly using the rclone-storage-initializer image

Once we tested that secret format is correct we can delete the pod

Deploy SKLearn Server with rclone-storage-initializer

Cleanup

Last updated

Was this helpful?