@soft-stech/keda
v0.3.1
Published
KEDA(Kubernetes Event-driven Autoscaling) models
Downloads
3
Readme
@kubernetes-models/keda
KEDA models.
Installation
Install with npm.
npm install @kubernetes-models/keda
Usage
import { ScaledObject } from "@kubernetes-models/keda/keda.sh/v1alpha1/ScaledObject";
// Create a new ScaledObject
const scaledObject = new ScaledObject({
metadata: {
name: "example",
},
spec: {
scaleTargetRef: {
name: 'example',
},
triggers: [
{
type: "cpu",
metadata: {
type: "Utilization",
value: "70",
},
}
],
},
});
// Validate against JSON schema
scaledObject.validate();
License
See LICENSE