Skip to content

Commit 4f817fb

Browse files
litaocdlgabriele-wolfoxjsilvela
authored
chore: add subscription token to pg4k-pgd doc (#185)
Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Co-authored-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
1 parent 939f813 commit 4f817fb

File tree

1 file changed

+47
-41
lines changed

1 file changed

+47
-41
lines changed

README.md

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
Helm charts to install the following Operators:
44

5-
1. [EDB Postgres for Kubernetes operator (PG4K)](https://docs.enterprisedb.io/edb-postgres-for-kubernetes/),
6-
designed by EnterpriseDB to manage PostgreSQL workloads on any
7-
supported Kubernetes cluster running in private, public, or hybrid cloud
8-
environments. Derived from CloudNativePG's Helm chart.
5+
- [EDB Postgres for Kubernetes operator (PG4K)](https://docs.enterprisedb.io/edb-postgres-for-kubernetes/),
6+
designed by EnterpriseDB to manage PostgreSQL workloads on any
7+
supported Kubernetes cluster running in private, public, or hybrid cloud
8+
environments. Derived from CloudNativePG's Helm chart.
99

10-
2. [EDB Postgres Distributed for Kubernetes (PG4K-PGD)](https://docs.enterprisedb.io/edb-postgres-distributed-for-kubernetes/),
11-
designed by EnterpriseDB to manage EDB Postgres Distributed v5 workloads
12-
on Kubernetes, with traffic routed by PGD Proxy.
10+
- [EDB Postgres Distributed for Kubernetes (PG4K-PGD)](https://docs.enterprisedb.io/edb-postgres-distributed-for-kubernetes/),
11+
designed by EnterpriseDB to manage EDB Postgres Distributed v5 workloads
12+
on Kubernetes, with traffic routed by PGD Proxy.
1313

1414
## Usage
1515

@@ -91,9 +91,9 @@ It is up to the user to ensure there is no collision between operators.
9191
## Deployment of the EDB Postgres Distributed for Kubernetes operator (PG4K-PGD)
9292

9393
Similar to the PG4K helm chart installation, both the operator and the operand images
94-
required by `edb-postgres-distributed-for-kubernetes` may be pulled from the
95-
`k8s_enterprise_pgd` or `k8s_standard_pgd` repositories at `docker.enterprisedb.com`,
96-
available with an EDB subscription plan.
94+
required by PG4K-PGD may be pulled from the `k8s_enterprise_pgd` or `k8s_standard_pgd`
95+
repositories at `docker.enterprisedb.com`, available with an EDB subscription plan.
96+
See: [obtaining an EDB subscription token](https://www.enterprisedb.com/docs/postgres_distributed_for_kubernetes/latest/installation_upgrade/#obtaining-an-edb-subscription-token)
9797

9898
The PG4K-PGD chart installs both the PG4K-PGD and PG4K operators in the
9999
same namespace. The PG4K operator installed is a stable version that is
@@ -110,17 +110,17 @@ For more information please see the section
110110
on [controlling the image repositories](#controlling-the-image-repositories).
111111

112112
**Note:** You will need credentials to retrieve the various
113-
operator and operand images. Make sure to replace USERNAME and PASSWORD with
114-
your own credentials in the command below, which uses the `k8s_enterprise_pgd`
115-
image registry by default:
113+
operator and operand images. Make sure to replace THE-TOKEN with
114+
your own EDB subscription token in the command below, which uses the
115+
`k8s_enterprise_pgd` image registry by default:
116116

117117
```console
118118
helm upgrade --dependency-update \
119119
--install edb-pg4k-pgd \
120120
--namespace pgd-operator-system \
121121
--create-namespace \
122-
--set image.imageCredentials.username=${USERNAME} \
123-
--set image.imageCredentials.password=${PASSWORD} \
122+
--set image.imageCredentials.username=k8s_enterprise_pgd \
123+
--set image.imageCredentials.password=<THE-TOKEN> \
124124
edb/edb-postgres-distributed-for-kubernetes
125125
```
126126

@@ -183,8 +183,9 @@ helm chart in the next section.
183183

184184
#### 2. Setup PG4K-PGD
185185

186-
Once the above deployments are ready, you can deploy the PG4K-PGD helm chart taking care
187-
to set `cert-manager.enabled` to false if cert-manager is installed separately.
186+
Once the above deployments are ready, you can deploy the PG4K-PGD
187+
helm chart taking care to set `cert-manager.enabled`
188+
to false if cert-manager is installed separately.
188189

189190
**Note:** In the following example, the flags setting the credentials were elided
190191
to put the focus on the `enabled=false` condition. The flags may still be
@@ -199,7 +200,7 @@ helm upgrade --dependency-update \
199200
edb/edb-postgres-distributed-for-kubernetes
200201
```
201202

202-
You should now have a seperate namespace for each operator:
203+
You should now have a separate namespace for each operator:
203204

204205
```sh
205206
$ kubectl get ns
@@ -220,49 +221,53 @@ invocation.
220221

221222
The following example uses the `k8s_standard_pgd` registry in
222223
`docker.enterprisedb.com`. Following is the description of set options.
223-
- `global.repository`: The repository where the operator and operand image are downloaded from.
224-
This is a global setting, which is shared for both PG4K-PGD and PG4K operators and pgd operands.
225224

226-
Assuming that you have your necessary credentials, please fill in the USERNAME
227-
and PASSWORD below.
225+
- `global.repository`: The repository where the operator and
226+
operand image are downloaded from.
227+
This is a global setting, which is shared for both PG4K-PGD
228+
and PG4K operators and pgd operands.
229+
230+
Assuming that you have your necessary EDB subscription token, please replace
231+
THE-TOKEN below.
228232

229233
```console
230234
helm upgrade --dependency-update \
231235
--install edb-pg4k-pgd \
232236
--namespace pgd-operator-system \
233237
--create-namespace \
234-
--set image.imageCredentials.username=${USERNAME} \
235-
--set image.imageCredentials.password=${PASSWORD} \
238+
--set image.imageCredentials.username=k8s_standard_pgd \
239+
--set image.imageCredentials.password=<THE-TOKEN> \
236240
--set global.repository=docker.enterprisedb.com/k8s_standard_pgd \
237241
edb/edb-postgres-distributed-for-kubernetes
238242
```
239243

240-
If we want to use a different flavor or a different version of PGD image, we can set the following two
241-
global options, for each helm chart release:
244+
If we want to use a different flavor or a different version of PGD image,
245+
we can set the following two global options, for each helm chart release:
242246

243-
- `pgdImageName`: the PGD image name to be used by the operator. PGD image (with this name)
244-
will be pulled from `global.repository`;
245-
- `proxyImageName`: the PGD proxy image name to be used by the operator. PGD proxy image (with this name)
246-
will be pulled from `global.repository`.
247+
- `pgdImageName`: the PGD image name to be used by the operator.
248+
PGD image (with this name) will be pulled from `global.repository`;
249+
250+
- `proxyImageName`: the PGD proxy image name to be used by the operator.
251+
PGD proxy image (with this name) will be pulled from `global.repository`.
247252

248253
PGD and PGD proxy are upgraded to the latest well-tested versions.
249254
By default, the PGD image here is using postgresql-pgd.
250255

251-
This example uses the `edb-postgres-advanced-pgd` PGD images.
256+
This example uses the `edb-postgres-advanced-pgd` PGD images
257+
as the default operand image.
252258

253259
```console
254260
helm upgrade --dependency-update \
255261
--install edb-pg4k-pgd \
256262
--namespace pgd-operator-system \
257263
--create-namespace \
258-
--set image.imageCredentials.username=${USERNAME} \
259-
--set image.imageCredentials.password=${PASSWORD} \
264+
--set image.imageCredentials.username=k8s_enterprise_pgd \
265+
--set image.imageCredentials.password=<THE-TOKEN> \
260266
--set global.pgdImageName=edb-postgres-advanced-pgd:16.4.1-5.5.1-1 \
261267
--set global.proxyImageName=edb-pgd-proxy:5.5.0 \
262268
edb/edb-postgres-distributed-for-kubernetes
263269
```
264270

265-
266271
## Deployment using local chart
267272

268273
### Deployment PG4K using local chart
@@ -286,8 +291,8 @@ To deploy PG4K-PGD with all dependencies together
286291
helm upgrade --install edb-pg4k-pgd \
287292
--namespace pgd-operator-system \
288293
--create-namespace \
289-
--set image.imageCredentials.username=${USERNAME} \
290-
--set image.imageCredentials.password=${PASSWORD} \
294+
--set image.imageCredentials.username=k8s_enterprise_pgd \
295+
--set image.imageCredentials.password=<THE-TOKEN> \
291296
charts/edb-postgres-distributed-for-kubernetes
292297
```
293298

@@ -298,8 +303,8 @@ helm upgrade --install edb-pg4k-lts \
298303
--namespace postgresql-operator-system \
299304
--create-namespace \
300305
--set image.imageCredentials.create=true \
301-
--set image.imageCredentials.username=${USERNAME} \
302-
--set image.imageCredentials.password=${PASSWORD} \
306+
--set image.imageCredentials.username=k8s_enterprise_pgd \
307+
--set image.imageCredentials.password=<THE-TOKEN> \
303308
charts/edb-postgres-distributed-for-kubernetes/charts/edb-postgres-for-kubernetes-lts
304309
```
305310

@@ -310,8 +315,8 @@ set.
310315
helm upgrade --install edb-pg4k-pgd \
311316
--namespace pgd-operator-system \
312317
--create-namespace \
313-
--set image.imageCredentials.username=${USERNAME} \
314-
--set image.imageCredentials.password=${PASSWORD} \
318+
--set image.imageCredentials.username=k8s_enterprise_pgd \
319+
--set image.imageCredentials.password=<THE-TOKEN> \
315320
--set edb-postgres-for-kubernetes-lts.enabled=false \
316321
charts/edb-postgres-distributed-for-kubernetes
317322
```
@@ -329,7 +334,8 @@ the chart directory before installing from the source.
329334

330335
**IMPORTANT:** Both the operators and the operand images are distributed
331336
under different license terms, in particular the `EDB Postgres for Kubernetes operator`
332-
and the `EDB Postgres Distributed for Kubernetes operator` are distributed under the
337+
and the `EDB Postgres Distributed for Kubernetes operator`
338+
are distributed under the
333339
[EnterpriseDB Limited Use License](https://www.enterprisedb.com/limited-use-license).
334340

335341
Copyright (C) 2021 EnterpriseDB Corporation.

0 commit comments

Comments
 (0)