githubEdit

Deploy Multiple Seldon Core Operators

This notebook illustrate how multiple Seldon Core Operators can share the same cluster. In particular:

  • A Namespaced Operator that only manages Seldon Deployments inside its namespace. Only needs Role RBAC and Namespace labeled with seldon.io/controller-id

  • A Clusterwide Operator that manges SeldonDeployment with a matching seldon.io/controller-id label.

  • A Clusterwide Operator that manages Seldon Deployments not handled by the above.

Setup Seldon Core

Use the setup notebook to Setup Clusterarrow-up-right with Ambassador Ingressarrow-up-right.

Namespaced Seldon Core Operator

!kubectl create namespace seldon-ns1
namespace/seldon-ns1 created
!kubectl label namespace seldon-ns1 seldon.io/controller-id=seldon-ns1
namespace/seldon-ns1 labeled
VERSION=!cat ../version.txt
VERSION=VERSION[0]
VERSION
'1.19.0-dev'
from IPython.core.magic import register_line_cell_magic


@register_line_cell_magic
def writetemplate(line, cell):
    with open(line, "w") as f:
        f.write(cell.format(**globals()))

Label Focused Seldon Core Operator

  • We set crd.create=false as the CRD already exists in the cluster.

  • We set controllerId=seldon-id1. SeldonDeployments with this label will be managed.

Last updated

Was this helpful?