Skip to content

Commit b25f3ab

Browse files
authored
Merge pull request #145 from cybertec-postgresql/rc-v0.9.2
Rc v0.9.2
2 parents df3aa2b + 84894b7 commit b25f3ab

17 files changed

Lines changed: 361 additions & 85 deletions

File tree

charts/postgres-operator/values.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image:
22
registry: docker.io
33
repository: cybertecpostgresql/cybertec-pg-operator
4-
tag: v0.8.0-1
4+
tag: v0.9.2-1
55
pullPolicy: "IfNotPresent"
66

77
# Optionally specify an array of imagePullSecrets.
@@ -38,7 +38,7 @@ configGeneral:
3838
# etcd connection string for Patroni. Empty uses K8s-native DCS.
3939
etcd_host: ""
4040
# Database pod docker image
41-
docker_image: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17.0-2
41+
docker_image: containers.cybertec.at/cybertec-pg-container/postgres:rocky9-18.3-2
4242

4343
# key name for annotation to ignore globally configured instance limits
4444
# ignore_instance_limits_annotation_key: ""
@@ -355,8 +355,6 @@ configLogicalBackup:
355355
# logical_backup_memory_limit: ""
356356
# logical_backup_memory_request: ""
357357

358-
# image for pods of the logical backup job (example runs pg_dumpall)
359-
logical_backup_docker_image: "registry.opensource.zalan.do/acid/logical-backup:v1.10.1"
360358
# path of google cloud service account json file
361359
# logical_backup_google_application_credentials: ""
362360

docs/hugo/content/en/crd/crd-postgresql.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ key, operator, value, effect and tolerationSeconds |
168168

169169
| Name | Type | required | Description |
170170
| ------------------------------ |:-------:| ---------:| ------------------:|
171+
| customQueries | string | false | Name of the ConfigMap containing custom queries |
171172
| [env](#env) | array | false | Allows you to add custom environment variables to all expoerter-sidecar containers |
172173
| image | string | true | Docker-Image for the metric exporter |
173174

@@ -251,6 +252,8 @@ key, operator, value, effect and tolerationSeconds |
251252
| ------------------------------ |:-------:| ---------:| ------------------:|
252253
| standby_host | string | true | Endpoint of the primary cluster |
253254
| standby_port | string | true | PostgreSQL port of the primary cluster |
255+
| standby_primary_slot_name | string | true | replication slot of the primary cluster |
256+
254257

255258
{{< back >}}
256259

docs/hugo/content/en/monitoring/_index.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ These Stack is based on:
1313

1414
CPO has prepared an own Exporter for the PostgreSQl-Pod which can used as a sidecar.
1515

16+
#### Configure Cluster for monitoring
17+
To deploy a monitoring exporter for Prometheus and create the necessary users and permissions in the cluster, the cluster manifest must be extended to include the `monitor` object.
18+
- `customQueries`: Name of the ConfigMap containing custom queries for PostgreSQL and Prometheus.
19+
- `env`: Additional environment variables for the sidecar container
20+
- `image`: Image for the monitoring sidecar. For example: `containers.cybertec.at/cybertec-pg-container/exporter:rocky9-18.3-2`
21+
22+
{{< hint type=Info >}}The ConfigMap is mounted in the sidecar container. Any additional permissions required for the queries must be manually granted to the monitoring user if necessary.{{< /hint >}}
23+
1624
#### Setting up the Monitoring Stack
1725
To setup the Monitoring-Stack we suggest that you create an own namespace and use the prepared kustomization file inside the Operator-Tutorials.
1826
```
@@ -24,7 +32,7 @@ No resources found in cpo-monitoring namespace.
2432
git clone https://github.com/cybertec-postgresql/CYBERTEC-operator-tutorial
2533
cd CYBERTEC-operator-tutorial/setup/monitoring
2634
27-
# Hint: Please check if youn want to use a specific storage-class the file pvcs.yaml and add your storageclass on the commented part. Please ensure that you removed the comment-char.
35+
{{< hint type=Info >}}Hint: Please check if you want to use a specific storage-class the file pvcs.yaml and add your storageclass on the commented part. Please ensure that you removed the comment-char.{{< /hint >}}
2836
2937
$ kubectl apply -n cpo-monitoring -k .
3038
serviceaccount/cpo-monitoring created
@@ -47,9 +55,9 @@ deployment.apps/cpo-monitoring-alertmanager created
4755
deployment.apps/cpo-monitoring-grafana created
4856
deployment.apps/cpo-monitoring-prometheus created
4957
50-
Hint: If you're not running Openshift you will get a error like this:
58+
{{< hint type=Info >}}Hint: If you're not running Openshift you will get a error like this:
5159
error: resource mapping not found for name: "grafana" namespace: "" from ".":
52-
no matches for kind "Route" in version "route.openshift.io/v1" ensure CRDs are installed first
60+
no matches for kind "Route" in version "route.openshift.io/v1" ensure CRDs are installed first{{< /hint >}}
5361
5462
You can ignore this, because it depends on an object with the type route which is part of Openshift.
5563
It is not needed replaced by ingress-rules or an loadbalancer-service.

docs/hugo/content/en/release_notes/_index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ date: 2024-03-11T14:26:51+01:00
44
draft: false
55
weight: 2500
66
---
7+
8+
### 0.9.2 ###
9+
10+
#### Features
11+
- Flexible environment variables: Introduction of custom environments, which can be defined both at container level and cluster-wide.
12+
- Advanced label configuration: Custom labels can now be flexibly configured for individual pods or the entire cluster.
13+
- Custom Metrics: Support for custom-queries in the exporter. These can now be easily added via ConfigMap without modifying the image.
14+
- logging: Conversion of Patroni logs from plain text to JSON format.
15+
16+
#### Fixes
17+
- Optimized upgrade-readiness-check: The trigger for major upgrades has been optimized.
18+
- Standby-cluster: An error when promoting standby clusters has been resolved.
19+
20+
#### Notification of upcoming deprecation
21+
- PG13 has reached its EoL - Support will be removed in the next release
22+
23+
#### Supported Versions
24+
25+
- PG: 13 - 18
26+
- Patroni: 4.1.0
27+
- pgBackRest: 2.57.0 - 2.58.0
28+
- Kubernetes: 1.21 - 1.34
29+
- Openshift: 4.8 - 4.20
30+
731
### 0.9.1 ###
832

933
#### Features

go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/sirupsen/logrus v1.9.1
1414
github.com/stretchr/testify v1.8.4
1515
go.etcd.io/etcd/client/v3 v3.5.4
16-
golang.org/x/crypto v0.45.0
16+
golang.org/x/crypto v0.46.0
1717
golang.org/x/exp v0.0.0-20230108222341-4b8118a2686a
1818
gopkg.in/yaml.v2 v2.4.0
1919
k8s.io/api v0.30.4
@@ -30,7 +30,7 @@ require (
3030
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
3131
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
3232
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 // indirect
33-
google.golang.org/grpc v1.75.0 // indirect
33+
google.golang.org/grpc v1.79.3 // indirect
3434
)
3535

3636
require (
@@ -65,16 +65,16 @@ require (
6565
go.uber.org/atomic v1.7.0 // indirect
6666
go.uber.org/multierr v1.6.0 // indirect
6767
go.uber.org/zap v1.19.0 // indirect
68-
golang.org/x/mod v0.29.0 // indirect
69-
golang.org/x/net v0.47.0 // indirect
70-
golang.org/x/oauth2 v0.30.0 // indirect
71-
golang.org/x/sync v0.18.0 // indirect
72-
golang.org/x/sys v0.38.0 // indirect
73-
golang.org/x/term v0.37.0 // indirect
74-
golang.org/x/text v0.31.0 // indirect
68+
golang.org/x/mod v0.30.0 // indirect
69+
golang.org/x/net v0.48.0 // indirect
70+
golang.org/x/oauth2 v0.34.0 // indirect
71+
golang.org/x/sync v0.19.0 // indirect
72+
golang.org/x/sys v0.39.0 // indirect
73+
golang.org/x/term v0.38.0 // indirect
74+
golang.org/x/text v0.32.0 // indirect
7575
golang.org/x/time v0.3.0 // indirect
76-
golang.org/x/tools v0.38.0 // indirect
77-
google.golang.org/protobuf v1.36.6 // indirect
76+
golang.org/x/tools v0.39.0 // indirect
77+
google.golang.org/protobuf v1.36.10 // indirect
7878
gopkg.in/inf.v0 v0.9.1 // indirect
7979
gopkg.in/yaml.v3 v3.0.1 // indirect
8080
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect

0 commit comments

Comments
 (0)