2.4.0 • Published 1 month ago

@kubernetes-models/victoria-metrics-operator v2.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@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