@blitzm/kubernetes-postgresql
v0.2.0
Published
@blitzm/kubernetes-postgresql is a pulumi component that simplifies the deployment of kubernetes-postgresql in kubernetes. It will create a statefulset for hosting Postgressql in the cluster.
Downloads
3
Keywords
Readme
Blitzm Cloud - kubernetes-postgresql
@blitzm/kubernetes-postgresql is a pulumi component that simplifies the deployment of kubernetes-postgresql in kubernetes. It will create a statefulset for hosting Postgressql in the cluster.
Installation
This package can be installed using npm
npm install --save --save-exact @blitzm/kubernetes-postgresql
Usage
You can choose to use the default version which is 11.9.1(Postgres DB version is 14.5.0) and the helm chart is shipped with this library or specify a version from https://artifacthub.io/packages/helm/bitnami/postgresql
import { PostgreSQL } from "@blitzm/kubernetes-postgresql";
// use the default version
const db = new PostgreSQL("new-postgres", {
provider: provider,
persistence:{
enabled: true,
sizeGB: 10
},
database: "my-db",
namespace: "my-namespace",
metrics: {
enabled: true
},
// uncomment the following line if you would like a specific version
// version: "11.8.2"
})
// export the connection strings
export const dbConnection = psql.connectionStrings;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.