@kubernetes-models/victoria-metrics-operator
v2.6.1
Published
VictoriaMetrics operator models
Downloads
1,832
Maintainers
Readme
@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