Skip to content

Commit 5fc2ccf

Browse files
committed
Merge branch 'neo/postgresai-helm-015-release-defaults' into 'main'
chore(helm): prepare chart defaults for PostgresAI 0.15 Closes #215 See merge request postgres-ai/postgresai!280
2 parents 7d41d6c + 1b9cb3a commit 5fc2ccf

4 files changed

Lines changed: 21 additions & 18 deletions

File tree

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ To upgrade postgres_ai monitoring to a newer version:
265265
### Step 1: Update the CLI
266266

267267
```bash
268-
npm install -g postgresai@latest
268+
npm install -g postgresai@0.15.0
269269
```
270270

271271
Or if you're using npx:
272272
```bash
273-
npx postgresai@latest --version # verify the new version
273+
npx postgresai@0.15.0 --version # verify the new version
274274
```
275275

276276
### Step 2: Stop running services
@@ -281,16 +281,20 @@ postgresai mon stop
281281

282282
### Step 3: Pull new Docker images and restart
283283

284-
The simplest approach is to re-run local-install, which updates the image tag and pulls new images:
284+
`mon update` migrates `.env` (adds any newly-required keys) and pulls images while preserving your user-managed `instances.yml`. It does **not** change `PGAI_TAG`, so set the new image tag yourself first — otherwise `mon update` just re-pulls and restarts the *old* version:
285285

286286
```bash
287-
postgresai mon local-install -y
287+
# In your monitoring directory (typically ~/.postgres_ai/), edit .env and set
288+
# PGAI_TAG to the version you are upgrading to (it should match your new CLI
289+
# version), e.g. for the 0.15 line: PGAI_TAG=0.15.0
290+
postgresai mon update
291+
postgresai mon start
288292
```
289293

290294
This will:
291-
- Update the `PGAI_TAG` in `.env` (located in your monitoring directory, typically `~/.postgres_ai/` or your current working directory) to match the new CLI version
292-
- Pull the latest Docker images
293-
- Start the services with the new images
295+
- Add any newly required `.env` keys for the newer stack (existing values, your secrets, and `instances.yml` targets are preserved)
296+
- Pull the Docker images for the `PGAI_TAG` you set
297+
- Start the services on the new images
294298

295299
> **Note:** The `.env` file contains configuration for the monitoring stack, including `PGAI_TAG` (the Docker image version tag), `REPLICATOR_PASSWORD` (generated password for the demo standby replication user), `VM_AUTH_USERNAME`, `VM_AUTH_PASSWORD`, and optionally `GF_SECURITY_ADMIN_PASSWORD` (Grafana admin password) and `PGAI_REGISTRY` (custom Docker registry). `postgresai mon local-install` preserves existing `REPLICATOR_PASSWORD` and `VM_AUTH_*` values or generates new ones when they are missing; Docker Compose requires these values and does not use known default passwords.
296300
@@ -301,9 +305,8 @@ This will:
301305
If you prefer more control:
302306

303307
```bash
304-
# Update the PGAI_TAG in .env to match your CLI version
305-
postgresai --version # check your CLI version
306-
# Edit .env and set PGAI_TAG to the version number
308+
# Update the PGAI_TAG in .env to match your target stack version
309+
# Edit .env and set PGAI_TAG=0.15.0
307310

308311
# Migrate .env to add any newly-required keys (e.g. VM_AUTH_* for 0.15+)
309312
postgresai mon update-config

cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Command-line interface for PostgresAI monitoring and database management.
1010
npm install -g postgresai
1111
```
1212

13-
Or install the latest beta release explicitly:
13+
For reproducible installs, pin the 0.15 release explicitly:
1414
```bash
15-
npm install -g postgresai@beta
15+
npm install -g postgresai@0.15.0
1616
```
1717

1818
Note: in this repository, `cli/package.json` uses a placeholder version (`0.0.0-dev.0`). The real published version is set by the git tag in CI when publishing to npm.

postgres_ai_helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: "1.0.0"
2+
appVersion: "0.15.0"
33
dependencies:
44
- condition: grafana.enabled
55
name: grafana
@@ -22,4 +22,4 @@ name: postgres-ai-monitoring
2222
sources:
2323
- https://github.com/PostgresAI/double-pgwatch-poc
2424
type: application
25-
version: "0.12.0"
25+
version: "0.15.0"

postgres_ai_helm/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ victoriaMetrics:
7070

7171
pgwatchPostgres:
7272
enabled: true
73-
image: cybertecpostgresql/pgwatch:4.1.0
73+
image: postgresai/pgwatch:0.15.0
7474
logLevel: error
7575
resources: {}
7676

7777
pgwatchPrometheus:
7878
enabled: true
79-
image: cybertecpostgresql/pgwatch:4.1.0
79+
image: postgresai/pgwatch:0.15.0
8080
logLevel: error
8181
resources: {}
8282

8383
flask:
8484
enabled: true
85-
image: postgresai/monitoring-flask-backend:0.14.0
85+
image: postgresai/monitoring-flask-backend:0.15.0
8686
imagePullPolicy: IfNotPresent
8787
containerPort: 8000
8888
healthPath: /health
@@ -109,7 +109,7 @@ flask:
109109

110110
reporter:
111111
enabled: true
112-
image: postgresai/reporter:1.0.3
112+
image: postgresai/reporter:0.15.0
113113
imagePullPolicy: IfNotPresent
114114
schedule: "0 0 * * *"
115115
# Legacy: If clusterName/nodeName are set here, they override global settings

0 commit comments

Comments
 (0)