Skip to content

Commit

Permalink
Merge pull request #2054 from RafalSkolasinski/helm-charts/extend-sel…
Browse files Browse the repository at this point in the history
…don-single-model

extend seldon-single-model chart
  • Loading branch information
axsaucedo authored Jul 7, 2020
2 parents 96cf61b + ea32181 commit 56cf87a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-charts/seldon-single-model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ helm install $MY_MODEL_NAME seldonio/seldon-single-model --namespace $MODELS_NAM
| labels | object | `{}` | Labels applied to the deployment |
| model.env | object | `{"LOG_LEVEL":"INFO"}` | Environment variables injected into the model's container |
| model.image | string | `""` | Docker image used by the model |
| model.implementation | string | `""` | Implementation of Prepackaged Model Server |
| model.logger.enabled | bool | `false` | |
| model.logger.url | string | `""` | |
| model.resources | object | `{"requests":{"memory":"1Mi"}}` | Resource requests and limits for the model's container |
| model.uri | string | `""` | Model's URI for prepackaged model server |
| replicas | int | `1` | Number of replicas for the predictor |
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"name": "default",
"graph": {
"name": "model",
{{- if .Values.model.implementation }}
"implementation": "{{ .Values.model.implementation }}",
{{- end}}
{{- if .Values.model.uri }}
"modelUri": "{{ .Values.model.uri }}",
{{- end}}
"type": "MODEL",
{{- if .Values.model.logger.enabled }}
"logger": {
Expand All @@ -38,7 +44,9 @@
"containers": [
{
"name": "model",
{{- if .Values.model.image }}
"image": "{{ .Values.model.image }}",
{{- end}}
"env": [
{{- range $var, $val := .Values.model.env }}
{
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/seldon-single-model/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
apiVersion: machinelearning.seldon.io/v1

model:
# model.implementation -- Implementation of Prepackaged Model Server
implementation: ""
# model.uri -- Model's URI for prepackaged model server
uri: ""
# model.image -- Docker image used by the model
image: ""
# model.env -- Environment variables injected into the model's container
Expand Down

0 comments on commit 56cf87a

Please sign in to comment.