Skip to content

Instantly share code, notes, and snippets.

@naxty
Created September 9, 2019 06:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save naxty/59d5bc22cfbbc3ad0ce71d9f82d52e40 to your computer and use it in GitHub Desktop.
K8 template seldon core
{
"apiVersion": "machinelearning.seldon.io/v1alpha2",
"kind": "SeldonDeployment",
"metadata": {
"labels": {
"app": "seldon"
},
"name": "seldon-emotion"
},
"spec": {
"name": "emotion-service-deployment",
"oauth_key": "oauth-key",
"oauth_secret": "oauth-secret",
"predictors": [
{
"componentSpecs": [{
"spec": {
"containers": [
{
"image": "emotion-service:0.1",
"imagePullPolicy": "IfNotPresent",
"name": "emotion-classifier",
"resources": {
"requests": {
"memory": "1Mi"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
}],
"graph": {
"children": [],
"name": "emotion-classifier",
"endpoint": {
"type" : "REST"
},
"type": "MODEL"
},
"name": "emotion-predictor",
"replicas": 1
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment