Patch Volumes for Version 1.2.0 Upgrade

This notebook contains an overview of how to perform the patch when upgrading from Seldon Core 1.1 into 1.2.

Note that this is ONLY required if you are performing a rolling upgrade. If you can delete the previous version and install Seldon Core 1.2 you will not need to perform any patching.

This issue will be fixed in version 1.2.1, so it is recommended to upgrade to this version instead.

In this notebook we will:

  • Install Seldon Core version 1.1

  • Deploy 3 models with varying complexities and specifications

  • Perform upgrade

  • Observe Issues

  • Run patch

  • Confirm issues are resolved

Install Seldon Core Version 1.1

%%bash
kubectl create namespace seldon-system || echo "Namespace seldon-system already exists"
helm upgrade --install seldon-core seldon-core-operator \
    --repo https://storage.googleapis.com/seldon-charts \
    --namespace seldon-system \
    --version v1.1.0 \
    --set certManager.enabled="true" \
    --set usageMetrics.enabled=true \
    --set istio.enabled="true"

Check seldon controller manager is running correctly

Check no errors in logs

Deploy 3 models

First model is simple sklearn model in default namespace

Second model is the same sklaern model but in the seldon-system namespace

Third model is the iris custom model with a mounted volume from a secret

First we create the secret

Then we deploy the model

Now we wait until they are deployed

Perform upgrade to 1.2

Observe error

Run Patch

The error is due a rename on the volumeMounts. We have created the script below which goes through all the seldon deploymetns across all namespaces to rename the volumeMount from podinfo to "seldon-podinfo".

It is recommended to understand this script fully if this is to be run in prodution as it would clash if any existing volume is actually named "podinfo".

Run script

Confirm issues are resolved

We can now check first that all of the containers are running

And we confirm that there are no longer any errors in the controller manager logs related to the volumeMount

Last updated

Was this helpful?