Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kubernetes-models/autoscaler

tommy3512.1kMIT3.3.2TypeScript support: included

Kubernetes Autoscaler models

kubernetes, kubernetes-models, autoscaler, vpa

readme

@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