seldon-single-model

by Helm

Helm chartv0.2.0

Chart to deploy a machine learning model in Seldon Core v1.

About this chart

seldon-single-model

Chart to deploy a machine learning model in Seldon Core v1.

Usage

To use this chart, you will first need to add the seldonio Helm repo:

helm repo add seldonio https://storage.googleapis.com/seldon-charts
helm repo update

Once that's done, you should then be able to use the inference graph template as:

helm template $MY_MODEL_NAME seldonio/seldon-single-model --namespace $MODELS_NAMESPACE

Note that you can also deploy the inference graph directly to your cluster using:

helm install $MY_MODEL_NAME seldonio/seldon-single-model --namespace $MODELS_NAMESPACE

Homepage: https://github.com/SeldonIO/seldon-core

Source Code

Values

KeyTypeDefaultDescription
annotationsobject{}Annotations applied to the deployment
apiVersionstring"machinelearning.seldon.io/v1"Version of the SeldonDeployment CRD
hpa.enabledboolfalseWhether to add an HPA spec to the deployment
hpa.maxReplicasint5Maximum number of replicas for HPA
hpa.metricslist[{"resource":{"name":"cpu","targetAverageUtilization":10},"type":"Resource"}]Metrics that autoscaler should check
hpa.minReplicasint1Minimum number of replicas for HPA
labelsobject{}Labels applied to the deployment
model.envobject{"LOG_LEVEL":"INFO"}Environment variables injected into the model's container
model.envSecretRefNamestring""The model secret name for enviroment variables
model.imagestring""Docker image used by the model
model.implementationstring""Implementation of Prepackaged Model Server
model.logger.enabledboolfalse
model.logger.urlstring""
model.mlflow.xtypestring""
model.resourcesobject{"requests":{"memory":"1Mi"}}Resource requests and limits for the model's container
model.uristring""Model's URI for prepackaged model server
protocolstring"seldon"
replicasint1Number of replicas for the predictor

Deploy seldon-single-model with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has seldon-single-model on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartseldon-single-model is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply