# @blitzm/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.

Latest version **0.2.0** (published 2022-09-28) · Blitzm license · 0 weekly downloads

## Install

```sh
npm install @blitzm/kubernetes-postgresql
pnpm add @blitzm/kubernetes-postgresql
yarn add @blitzm/kubernetes-postgresql
bun add @blitzm/kubernetes-postgresql
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-09-28 |
| First published | 2022-07-05 |
| Weekly downloads | 0 |
| License | Blitzm |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 744.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tim-blitzm, blitzm-sean, blitzm-admin, blitzm-james |

## Links

- npm: https://www.npmjs.com/package/@blitzm/kubernetes-postgresql
- npm.io page: https://npm.io/package/@blitzm/kubernetes-postgresql

## Dependencies (2)

- [@blitzm/kubernetes-utils](https://npm.io/package/@blitzm/kubernetes-utils.md) 0.1.0
- [@blitzm/kubernetes-abstractions](https://npm.io/package/@blitzm/kubernetes-abstractions.md) *

## Recent versions

- 0.2.0 (latest) — 2022-09-28
- 0.1.0 — 2022-07-05

## 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](https://www.npmjs.com/)

```bash
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

```typescript
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](https://www.blitzm.com.au)

---
_Source: https://npm.io/package/@blitzm/kubernetes-postgresql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
