2
2
3
3
Helm charts to install the following Operators:
4
4
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.
9
9
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.
13
13
14
14
## Usage
15
15
@@ -91,9 +91,9 @@ It is up to the user to ensure there is no collision between operators.
91
91
## Deployment of the EDB Postgres Distributed for Kubernetes operator (PG4K-PGD)
92
92
93
93
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 )
97
97
98
98
The PG4K-PGD chart installs both the PG4K-PGD and PG4K operators in the
99
99
same namespace. The PG4K operator installed is a stable version that is
@@ -110,17 +110,17 @@ For more information please see the section
110
110
on [ controlling the image repositories] ( #controlling-the-image-repositories ) .
111
111
112
112
** 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:
116
116
117
117
``` console
118
118
helm upgrade --dependency-update \
119
119
--install edb-pg4k-pgd \
120
120
--namespace pgd-operator-system \
121
121
--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> \
124
124
edb/edb-postgres-distributed-for-kubernetes
125
125
```
126
126
@@ -183,8 +183,9 @@ helm chart in the next section.
183
183
184
184
#### 2. Setup PG4K-PGD
185
185
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.
188
189
189
190
** Note:** In the following example, the flags setting the credentials were elided
190
191
to put the focus on the ` enabled=false ` condition. The flags may still be
@@ -199,7 +200,7 @@ helm upgrade --dependency-update \
199
200
edb/edb-postgres-distributed-for-kubernetes
200
201
```
201
202
202
- You should now have a seperate namespace for each operator:
203
+ You should now have a separate namespace for each operator:
203
204
204
205
``` sh
205
206
$ kubectl get ns
@@ -220,49 +221,53 @@ invocation.
220
221
221
222
The following example uses the ` k8s_standard_pgd ` registry in
222
223
` 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.
225
224
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.
228
232
229
233
``` console
230
234
helm upgrade --dependency-update \
231
235
--install edb-pg4k-pgd \
232
236
--namespace pgd-operator-system \
233
237
--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> \
236
240
--set global.repository=docker.enterprisedb.com/k8s_standard_pgd \
237
241
edb/edb-postgres-distributed-for-kubernetes
238
242
```
239
243
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:
242
246
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 ` .
247
252
248
253
PGD and PGD proxy are upgraded to the latest well-tested versions.
249
254
By default, the PGD image here is using postgresql-pgd.
250
255
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.
252
258
253
259
``` console
254
260
helm upgrade --dependency-update \
255
261
--install edb-pg4k-pgd \
256
262
--namespace pgd-operator-system \
257
263
--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> \
260
266
--set global.pgdImageName=edb-postgres-advanced-pgd:16.4.1-5.5.1-1 \
261
267
--set global.proxyImageName=edb-pgd-proxy:5.5.0 \
262
268
edb/edb-postgres-distributed-for-kubernetes
263
269
```
264
270
265
-
266
271
## Deployment using local chart
267
272
268
273
### Deployment PG4K using local chart
@@ -286,8 +291,8 @@ To deploy PG4K-PGD with all dependencies together
286
291
helm upgrade --install edb-pg4k-pgd \
287
292
--namespace pgd-operator-system \
288
293
--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> \
291
296
charts/edb-postgres-distributed-for-kubernetes
292
297
```
293
298
@@ -298,8 +303,8 @@ helm upgrade --install edb-pg4k-lts \
298
303
--namespace postgresql-operator-system \
299
304
--create-namespace \
300
305
--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> \
303
308
charts/edb-postgres-distributed-for-kubernetes/charts/edb-postgres-for-kubernetes-lts
304
309
```
305
310
310
315
helm upgrade --install edb-pg4k-pgd \
311
316
--namespace pgd-operator-system \
312
317
--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> \
315
320
--set edb-postgres-for-kubernetes-lts.enabled=false \
316
321
charts/edb-postgres-distributed-for-kubernetes
317
322
```
@@ -329,7 +334,8 @@ the chart directory before installing from the source.
329
334
330
335
** IMPORTANT:** Both the operators and the operand images are distributed
331
336
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
333
339
[ EnterpriseDB Limited Use License] ( https://www.enterprisedb.com/limited-use-license ) .
334
340
335
341
Copyright (C) 2021 EnterpriseDB Corporation.
0 commit comments