Skip to content

Commit e8d55b4

Browse files
authored
Merge pull request #1496 from EnterpriseDB/content/josh/cnp-1.5.1-update
CNP 1.5.1 update Former-commit-id: 6f51463
2 parents 7afe454 + ee1efd5 commit e8d55b4

File tree

7 files changed

+52
-19
lines changed

7 files changed

+52
-19
lines changed

advocacy_docs/kubernetes/cloud_native_postgresql/api_reference.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,13 @@ SecretsResourceVersion is the resource versions of the secrets managed by the op
503503

504504
Name | Description | Type
505505
------------------------ | -------------------------------------------------------------------- | ------
506-
`superuserSecretVersion ` | The resource version of the "postgres" user secret - *mandatory* | string
507-
`replicationSecretVersion` | The resource version of the "streaming_replication" user secret - *mandatory* | string
508-
`applicationSecretVersion` | The resource version of the "app" user secret - *mandatory* | string
506+
`superuserSecretVersion ` | The resource version of the "postgres" user secret | string
507+
`replicationSecretVersion` | The resource version of the "streaming_replication" user secret | string
508+
`applicationSecretVersion` | The resource version of the "app" user secret | string
509509
`caSecretVersion ` | Unused. Retained for compatibility with old versions. | string
510-
`clientCaSecretVersion ` | The resource version of the PostgreSQL client-side CA secret version - *mandatory* | string
511-
`serverCaSecretVersion ` | The resource version of the PostgreSQL server-side CA secret version - *mandatory* | string
512-
`serverSecretVersion ` | The resource version of the PostgreSQL server-side secret version - *mandatory* | string
510+
`clientCaSecretVersion ` | The resource version of the PostgreSQL client-side CA secret version | string
511+
`serverCaSecretVersion ` | The resource version of the PostgreSQL server-side CA secret version | string
512+
`serverSecretVersion ` | The resource version of the PostgreSQL server-side secret version | string
513513

514514
<a id='StorageConfiguration'></a>
515515

advocacy_docs/kubernetes/cloud_native_postgresql/installation_upgrade.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ product: 'Cloud Native Operator'
1111
The operator can be installed like any other resource in Kubernetes,
1212
through a YAML manifest applied via `kubectl`.
1313

14-
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml)
14+
You can install the [latest operator manifest](https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml)
1515
as follows:
1616

1717
```sh
1818
kubectl apply -f \
19-
https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
19+
https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
2020
```
2121

2222
Once you have run the `kubectl` command, Cloud Native PostgreSQL will be installed in your Kubernetes cluster.

advocacy_docs/kubernetes/cloud_native_postgresql/interactive_demo.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You will see one node called `minikube`. If the status isn't yet "Ready", wait f
6565
Now that the Minikube cluster is running, you can proceed with Cloud Native PostgreSQL installation as described in the ["Installation"](installation_upgrade.md) section:
6666

6767
```shell
68-
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
68+
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
6969
__OUTPUT__
7070
namespace/postgresql-operator-system created
7171
customresourcedefinition.apiextensions.k8s.io/backups.postgresql.k8s.enterprisedb.io created
@@ -245,7 +245,7 @@ curl -sSfL \
245245
sudo sh -s -- -b /usr/local/bin
246246
__OUTPUT__
247247
EnterpriseDB/kubectl-cnp info checking GitHub for latest tag
248-
EnterpriseDB/kubectl-cnp info found version: 1.5.0 for v1.5.0/linux/x86_64
248+
EnterpriseDB/kubectl-cnp info found version: 1.5.1 for v1.5.1/linux/x86_64
249249
EnterpriseDB/kubectl-cnp info installed /usr/local/bin/kubectl-cnp
250250
```
251251

advocacy_docs/kubernetes/cloud_native_postgresql/operator_capability_levels.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ workload requirements, based on what the underlying Kubernetes environment
9090
can offer. This implies choosing a particular storage class in
9191
a public cloud environment or fine-tuning the generated PVC through a
9292
PVC template in the CR's `storage` parameter.
93+
The [`cnp-bench`](https://github.com/EnterpriseDB/cnp-bench) open source
94+
project can be used to benchmark both the storage and the database prior to
95+
production.
9396

9497
### Replica configuration
9598

@@ -173,17 +176,16 @@ Kubernetes API Server and the operator itself.
173176
### Cluster's certification authority
174177

175178
The operator automatically creates a certification authority for every PostgreSQL
176-
cluster, which is used to issue and renew TLS certificates for the authentication
177-
of streaming replication standby servers and applications (instead of passwords).
178-
The operator will use the Certification Authority to sign every cluster
179-
certification authority. Certificates can be issued with the `cnp` plugin
180-
for `kubectl`.
179+
cluster, which is used to issue and renew TLS certificates for clients' authentication,
180+
including streaming replication standby servers (instead of passwords).
181+
Certificates can be issued with the `cnp` plugin for `kubectl`.
181182

182183
### TLS connections
183184

184185
The operator transparently and natively supports TLS/SSL connections
185186
to encrypt client/server communications for increased security using the
186187
cluster's certification authority.
188+
Support for custom server certificates is available through secrets.
187189

188190
### Certificate authentication for streaming replication
189191

advocacy_docs/kubernetes/cloud_native_postgresql/operator_conf.mdx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ namespace as a Kubernetes `Deployment` called `postgresql-operator-controller-ma
2121
!!! Note
2222
In the examples below we assume the default name and namespace for the operator deployment.
2323

24-
The behavior of the operator can be customized through a `ConfigMap` that
24+
The behavior of the operator can be customized through a `ConfigMap`/`Secret` that
2525
is located in the same namespace of the operator deployment and with
2626
`postgresql-operator-controller-manager-config` as the name.
2727

2828
!!! Important
29-
Any change to the config map will not be automatically detected by the operator,
29+
Any change to the config's `ConfigMap`/`Secret` will not be automatically detected by the operator,
3030
- and as such, it needs to be reloaded (see below). Moreover, changes only
3131
apply to the resources created after the configuration is reloaded.
3232

33+
!!! Important
34+
The operator first processes the ConfigMap values and then the Secret’s, in this order.
35+
As a result, if a parameter is defined in both places, the one in the Secret will be used.
36+
3337
## Available options
3438

3539
The operator looks for the following environment variables to be defined in the config map:
@@ -65,6 +69,24 @@ data:
6569
EDB_LICENSE_KEY: <YOUR_EDB_LICENSE_KEY_HERE>
6670
```
6771
72+
## Defining an operator secret
73+
74+
The example below customizes the behavior of the operator, by defining a
75+
default license key.
76+
77+
```yaml
78+
apiVersion: v1
79+
kind: Secret
80+
metadata:
81+
name: postgresql-operator-controller-manager-config
82+
namespace: postgresql-operator-system
83+
type: Opaque
84+
data:
85+
EDB_LICENSE_KEY: <YOUR_BASE64_ENCODED_EDB_LICENSE_KEY_HERE>
86+
```
87+
88+
## Restarting the operator to reload configs
89+
6890
For the change to be effective, you need to recreate the operator pods to
6991
reload the config map. If you have installed the operator on Kubernetes
7092
using the manifest you can do that by issuing:

advocacy_docs/kubernetes/cloud_native_postgresql/release_notes.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ product: 'Cloud Native Operator'
66

77
History of user-visible changes for Cloud Native PostgreSQL.
88

9+
## Version 1.5.1
10+
11+
**Release date:** 17 June 2021
12+
13+
Change:
14+
15+
- Fix a bug with CRD validation preventing auto-update with Operator Deployments on Red Hat OpenShift
16+
- Allow passing operator's configuration using a Secret.
17+
918
## Version 1.5.0
1019

1120
**Release date:** 11 June 2021

merge_sources/kubernetes/cloud_native_postgresql/interactive_demo.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You will see one node called `minikube`. If the status isn't yet "Ready", wait f
6565
Now that the Minikube cluster is running, you can proceed with Cloud Native PostgreSQL installation as described in the ["Installation"](installation_upgrade.md) section:
6666

6767
```shell
68-
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.0.yaml
68+
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.5.1.yaml
6969
__OUTPUT__
7070
namespace/postgresql-operator-system created
7171
customresourcedefinition.apiextensions.k8s.io/backups.postgresql.k8s.enterprisedb.io created
@@ -245,7 +245,7 @@ curl -sSfL \
245245
sudo sh -s -- -b /usr/local/bin
246246
__OUTPUT__
247247
EnterpriseDB/kubectl-cnp info checking GitHub for latest tag
248-
EnterpriseDB/kubectl-cnp info found version: 1.5.0 for v1.5.0/linux/x86_64
248+
EnterpriseDB/kubectl-cnp info found version: 1.5.1 for v1.5.1/linux/x86_64
249249
EnterpriseDB/kubectl-cnp info installed /usr/local/bin/kubectl-cnp
250250
```
251251

0 commit comments

Comments
 (0)