@soft-stech/autoscaler
Version:
Kubernetes Autoscaler models
38 lines (27 loc) • 607 B
Markdown
[](https://github.com/kubernetes/autoscaler) models.
Install with npm.
```sh
npm install @kubernetes-models/autoscaler
```
```js
import { VerticalPodAutoscaler } from "@kubernetes-models/autoscaler/autoscaling.k8s.io/v1/VerticalPodAutoscaler";
const vpa = new VerticalPodAutoscaler({
spec: {
targetRef: {
apiVersion: 'apps/v1',
kind: 'Deployment',
name: 'my-app'
},
updatePolicy: {
updateMode: 'Off'
}
}
});
// Validate against JSON schema
vpa.validate();
```
MIT