The Datapio SDK Kubernetes Operator provides a declarative way to interact with a Kubernetes Cluster and watch resources.
It allows you to:
/health
/metrics
(soon)/graphql
/api
$ npm install @datapio/sdk-k8s-operator
The SDK provides an Operator
class that you can inherit from:
import { Operator } from '@datapio/sdk-k8s-operator'
class MyOperator extends Operator {
constructor() {
super({
/* options */
})
}
}
You can then instantiate and use your operator:
const operator = new MyOperator()
// start the operator
await operator.service.listen()
Generated using TypeDoc