@kubernetes-models/redis-operator
v0.3.2
Published
Redis operator models
Downloads
2,607
Maintainers
Readme
@kubernetes-models/redis-operator
Redis Operator models.
Installation
Install with npm.
npm install @kubernetes-models/redis-operator
Usage
import { RedisCluster } from "@kubernetes-models/redis-operator/redis.redis.opstreelabs.in/v1beta1/RedisCluster";
const cluster = new RedisCluster({
metadata: { name: "example" },
spec: {
clusterSize: 3,
clusterVersion: "v7",
persistenceEnabled: true,
kubernetesConfig: {
image: "quay.io/opstree/redis:v7.0.5"
}
}
});
// Validate against JSON schema
cluster.validate();
License
MIT