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

2.5.0 • Public • Published

@kubernetes-models/victoria-metrics-operator

VictoriaMetrics operator models.

Installation

Install with npm.

npm install @kubernetes-models/victoria-metrics-operator

Usage

import { VMCluster } from "@kubernetes-models/victoria-metrics-operator/operator.victoriametrics.com/v1beta1/VMCluster";

// Create a new VMCluster
const cluster = new VMCluster({
  metadata: { name: "example" },
  spec: {
    retentionPeriod: "12",
    vmstorage: {
      replicaCount: 2
    }
  }
});

// Validate against JSON schema
cluster.validate();

License

See LICENSE

Package Sidebar

Install

npm i @kubernetes-models/victoria-metrics-operator

Weekly Downloads

313

Version

2.5.0

License

MIT

Unpacked Size

2.38 MB

Total Files

82

Last publish

Collaborators

  • tommy351