@kubernetes-models/autoscaler
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

@kubernetes-models/autoscaler

Kubernetes Autoscaler models.

Installation

Install with npm.

npm install @kubernetes-models/autoscaler

Usage

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();

License

MIT

Package Sidebar

Install

npm i @kubernetes-models/autoscaler

Weekly Downloads

385

Version

3.3.1

License

MIT

Unpacked Size

213 kB

Total Files

54

Last publish

Collaborators

  • tommy351