@blitzm/kubernetes-postgresql
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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.

License

Blitzm

Readme

Keywords

none

Package Sidebar

Install

npm i @blitzm/kubernetes-postgresql

Weekly Downloads

2

Version

0.2.0

License

Blitzm

Unpacked Size

763 kB

Total Files

124

Last publish

Collaborators

  • tim-blitzm
  • blitzm-sean
  • blitzm-admin
  • blitzm-james