@kubernetes-models/kubedb
v0.4.0
Published
KubeDB models
Downloads
43
Maintainers
Readme
@kubernetes-models/kubedb
KubeDB models.
Installation
Install with npm.
npm install @kubernetes-models/kubedb
Usage
import { App } from "@kubernetes-models/kubedb/kubedb.com/v1alpha2/Postgres";
// Create a new Postgres
const pg = new Postgres({
metadata: { name: "example" },
spec: {
version: "13.2",
storageType: "Durable",
storage: {
storageClassName: "standard",
accessModes: ["ReadWriteOnce"],
resources: {
requests: { storage: "1Gi" }
}
},
terminationPolicy: "DoNotTerminate"
}
});
// Validate against JSON schema
pg.validate();
License
See LICENSE