RabbitMQ Cluster Operator models.
Install with npm.
npm install @kubernetes-models/rabbitmq-cluster-operator
import { RabbitmqCluster } from "@kubernetes-models/rabbitmq-cluster-operator/rabbitmq.com/v1beta1/RabbitmqCluster";
// Create a new RabbitmqCluster
const cluster = new RabbitmqCluster({
metadata: { name: "example" },
spec: {
replicas: 3,
service: {
type: "LoadBalancer"
}
}
});
// Validate against JSON schema
cluster.validate();
See LICENSE