@soft-stech/seldon-core-operator
v0.2.3
Published
seldon core operator
Downloads
4
Readme
@kubernetes-models/seldon-core-operator
SeldonCore operator models.
Installation
Install with npm.
npm install @kubernetes-models/seldon-core-operator
Usage
import { SeldonDeployment } from "@kubernetes-models/seldon-core-operator/machinelearning.seldon.io/v1/SeldonDeployment";
// Create a new SeldonDeployment
const deployment = new SeldonDeployment({
metadata: { name: "example" },
spec: {
predictors: [
{
name: "example",
graph: {
name: "classifier",
children: [],
endpoint: {
type: "REST",
},
type: "MODEL",
},
}
]
}
})
// Validate against JSON schema
deployment.validate();
License
See LICENSE