Skip to content

Commit

Permalink
Update pg-db and pg-operator for 2.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jvpasinatto committed Oct 8, 2024
1 parent e80957f commit d494d9d
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 13 deletions.
12 changes: 7 additions & 5 deletions charts/pg-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Useful links:

## Pre-requisites
* [Percona Operator for PostgreSQL](https://hub.helm.sh/charts/percona/pg-operator) running in your Kubernetes cluster. See installation details [here](https://github.com/percona/percona-helm-charts/tree/main/charts/pg-operator) or in the [Operator Documentation](https://www.percona.com/doc/kubernetes-operator-for-postgresql/helm.html).
* Kubernetes 1.27+
* Kubernetes 1.28+
* At least `v3.2.3` version of helm

# Installation
Expand All @@ -34,7 +34,7 @@ The chart can be customized using the following configurable parameters:
| `finalizers` | Finalizers list | `{}` |
| `crVersion` | CR Cluster Manifest version | `2.5.0` |
| `repository` | PostgreSQL container image repository | `percona/percona-postgresql-operator` |
| `image` | Postgres image | `percona/percona-postgresql-operator:2.4.1-ppg16.3-postgres` |
| `image` | Postgres image | `percona/percona-postgresql-operator:2.5.0-ppg16.4-postgres` |
| `imagePullPolicy` | image Pull Policy | `Always` |
| `port` | PostgreSQL port | `5432` |
| `postgresVersion` | PostgreSQL container version tag | `16` |
Expand All @@ -44,6 +44,8 @@ The chart can be customized using the following configurable parameters:
| `standby.host` | Host address of the primary cluster this standby cluster connects to | `` |
| `standby.port` | Port number used by a standby copy to connect to the primary cluster | `` |
| `standby.repoName` | Name of the pgBackRest repository in the primary cluster this standby cluster connects to | `` |
| `customRootCATLSSecret.name` | Name of the secret with the custom root CA certificate and key for secure connections to the PostgreSQL server | `` |
| `customRootCATLSSecret.items` | Key-value pairs of the `key` (a key from the `secrets.customRootCATLSSecret.name` secret) and the `path` (name on the file system) for the custom root certificate and key | `` |
| `customTLSSecret.name` | A secret with TLS certificate generated for external communications | `""` |
| `customReplicationTLSSecret.name` | A secret with TLS certificate generated for internal communications | `""` |
| `openshift` | Set to true if the cluster is being deployed on OpenShift, set to false otherwise, or unset it for autodetection | `false` |
Expand Down Expand Up @@ -162,7 +164,7 @@ The chart can be customized using the following configurable parameters:
| `backups.restore.enabled` | Enables or disables restoring a previously made backup | `false` |
| `backups.restore.repoName` | Name of the pgBackRest repository that contains the backup to be restored | `repo1` |
| `backups.restore.options` | The pgBackRest command-line options for the pgBackRest restore command | `--type=time` |
| `backups.pgbackrest.image` | Set this variable if you need to use a custom pgBackrest image | `percona/percona-postgresql-operator:2.4.1-ppg16.3-pgbackrest2.51-1` |
| `backups.pgbackrest.image` | Set this variable if you need to use a custom pgBackrest image | `percona/percona-postgresql-operator:2.5.0-ppg16.4-pgbackrest2.53-1` |
| `backups.repos.repo2.s3.bucket` | Storage bucket | `` |
| `backups.repos.repo2.s3.region` | S3-compatible storage name | `` |
| `backups.repos.repo2.s3.endpoint` | S3-compatible storage endpoint | `` |
Expand All @@ -186,7 +188,7 @@ The chart can be customized using the following configurable parameters:
| `proxy.pgBouncer.customTLSSecret.name` | Custom external TLS secret name | `keycloakdb-pgbouncer.tls` |
| `proxy.pgBouncer.securityContext` | The Kubernetes Pod security context for the pgBouncer instance | `{}` |
| `proxy.pgBouncer.affinity.podAntiAffinity` | Pod anti-affinity, allows setting the standard Kubernetes affinity constraints of any complexity | `{}` |
| `proxy.pgBouncer.image` | Set this variable if you need to use a custom pgbouncer image | `percona/percona-postgresql-operator:2.4.1-ppg16.3-pgbouncer1.22.1` |
| `proxy.pgBouncer.image` | Set this variable if you need to use a custom pgbouncer image | `percona/percona-postgresql-operator:2.5.0-ppg16.4-pgbouncer1.23.1` |
| `proxy.pgBouncer.replicas` | The number of pgbouncer instances | `3` |
| `proxy.pgBouncer.resources.requests.cpu` | Container resource request for CPU | `1` |
| `proxy.pgBouncer.resources.requests.memory` | Container resource request for RAM | `128Mi` |
Expand All @@ -197,7 +199,7 @@ The chart can be customized using the following configurable parameters:
| |
| `pmm.enabled` | Enable integration with [Percona Monitoring and Management software](https://www.percona.com/blog/2020/07/23/using-percona-kubernetes-operators-with-percona-monitoring-and-management/) | `false` |
| `pmm.image.repository` | PMM Container image repository | `percona/pmm-client` |
| `pmm.image.tag` | PMM Container image tag | `2.42.0` |
| `pmm.image.tag` | PMM Container image tag | `2.43.1` |
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `pmm.querySource` | PMM querySource, 'pgstatmonitor' or 'pgstatstatemenets'. | `pgstatmonitor` |
| `pmm.resources.requests.memory` | Container resource request for RAM | `200M` |
Expand Down
6 changes: 6 additions & 0 deletions charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ spec:
enabled: {{ .Values.standby.enabled }}
{{- if or (.Values.customTLSSecret.name) (.Values.customReplicationTLSSecret.name) }}
secrets:
{{- if .Values.customRootCATLSSecret.name }}
customRootCATLSSecret:
name: {{ .Values.customRootCATLSSecret.name }}
items:
{{- toYaml .Values.customRootCATLSSecret.items | nindent 8 }}
{{- end }}
{{- if .Values.customTLSSecret.name }}
customTLSSecret:
name: {{ .Values.customTLSSecret.name }}
Expand Down
17 changes: 12 additions & 5 deletions charts/pg-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ finalizers:

crVersion: 2.5.0
repository: percona/percona-postgresql-operator
image: percona/percona-postgresql-operator:2.4.1-ppg16.3-postgres
image: percona/percona-postgresql-operator:2.5.0-ppg16.4-postgres
imagePullPolicy: Always
postgresVersion: 16
# port: 5432
Expand All @@ -22,6 +22,13 @@ standby:
# port: "<primary-port>"
# repoName: repo1

# customRootCATLSSecret:
# name: cluster1-ca-cert
# items:
# - key: "tls.crt"
# path: "root.crt"
# - key: "tls.key"
# path: "root.key"
customTLSSecret:
name: ""
customReplicationTLSSecret:
Expand Down Expand Up @@ -233,7 +240,7 @@ instances:
proxy:
pgBouncer:
replicas: 3
image: percona/percona-postgresql-operator:2.4.1-ppg16.3-pgbouncer1.22.1
image: percona/percona-postgresql-operator:2.5.0-ppg16.4-pgbouncer1.23.1
# exposeSuperusers: true
# resources:
# limits:
Expand Down Expand Up @@ -315,7 +322,7 @@ backups:
pgbackrest:
# metadata:
# labels:
image: percona/percona-postgresql-operator:2.4.1-ppg16.3-pgbackrest2.51-1
image: percona/percona-postgresql-operator:2.5.0-ppg16.4-pgbackrest2.53-1
# containers:
# pgbackrest:
# resources:
Expand Down Expand Up @@ -461,7 +468,7 @@ pmm:
enabled: false
image:
repository: percona/pmm-client
tag: 2.42.0
tag: 2.43.1
# imagePullPolicy: IfNotPresent
secret: cluster1-pmm-secret
serverHost: monitoring-service
Expand Down Expand Up @@ -492,7 +499,7 @@ pmm:
# targetInstance: ""

# extensions:
# image: percona/percona-postgresql-operator:2.4.1
# image: percona/percona-postgresql-operator:2.5.0
# imagePullPolicy: Always
# storage:
# type: s3
Expand Down
4 changes: 2 additions & 2 deletions charts/pg-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A job will be created based on `helm` `install`, `upgrade`, or `uninstall`. Afte
job has completed the RBAC will be cleaned up.

## Pre-requisites
* Kubernetes 1.27+
* Kubernetes 1.28+
* At least `v3.2.3` version of helm

# Installation
Expand All @@ -35,7 +35,7 @@ Chart.

| Parameter | Description | Default |
| -------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------- |
| `image` | PG Operator Container image full path | `percona/percona-postgresql-operator:2.4.1` |
| `image` | PG Operator Container image full path | `percona/percona-postgresql-operator:2.5.0` |
| `imagePullPolicy` | PG Operator Container pull policy | `Always` |
| `resources` | Resource requests and limits | `{}` |
| `nodeSelector` | Labels for Pod assignment | `{}` |
Expand Down
Loading

0 comments on commit d494d9d

Please sign in to comment.