@@ -94,10 +94,9 @@ Like PG4K install, both the operator and the operand images required by PG4K-PGD
94
94
may be pulled from the ` k8s_enterprise ` or ` k8s_standard ` repositories at
95
95
` docker.enterprisedb.com ` , please obtaining an EDB subscription token before setup.
96
96
97
- The ` edb-postgres-distributed-for-kubernetes ` chart will by default install PG4K
98
- operator defined by sub-chart in the same namespace, the PG4K operator installed
99
- in the sub-chart is PG4K LTS release operator, which is upgraded along with the
100
- parent chart version release.
97
+ The ` edb-postgres-distributed-for-kubernetes ` chart will install the operator for
98
+ both PG4K-PGD and PG4K in the same namespace. The PG4K operator used for PG4K-PGD
99
+ is well-tested and belongs to latest long term support release of PG4K.
101
100
102
101
The ` edb-postgres-distributed-for-kubernetes ` chart also install the cert-manager
103
102
operators as dependency. You can avoid this if necessary. See the sub-section
@@ -145,7 +144,7 @@ helm chart are working:
145
144
### Deploying the PG4K-PGD operators and cert-manager individually
146
145
147
146
The chart ` edb-postgres-distributed-for-kubernetes ` is set by default to
148
- also install PG4K and cert-manager operators, which it depends on.
147
+ also install cert-manager operators, which it depends on.
149
148
When following this route, all operators will be installed in the same
150
149
namespace. This is in contrast with other installation paths, where the
151
150
operators reside in dedicated namespaces.
@@ -154,7 +153,7 @@ Installing all dependencies in the same namespace is a design limitation of
154
153
Helm, but we can get around it by installing dependencies with separate
155
154
invocations of ` helm ` .
156
155
157
- If you would like to install the cert-manager in separate namespaces, please
156
+ If you would like to install the cert-manager in a separate namespaces, please
158
157
follow the below steps.
159
158
160
159
#### 1. Setup cert-manager
@@ -184,23 +183,10 @@ In case you choose this option, remember to also specify
184
183
` --set cert-manager.enabled=false ` during the installation of the PG4K-PGD
185
184
helm chart in the next section.
186
185
187
- #### 2. Setup PG4K
188
-
189
- By default, a PG4K operator with LTS release is installed alongside with PG4K-PGD
190
- deploy. You can follow [ PG4K helm chart] ( #deployment-of-the-edb-postgres-for-kubernetes-operator-pg4k )
191
- to deploy the PG4K operator in its own namespace. But it is highly recommended to use
192
- the PG4K operator installed as dependency of PG4K-PGD chart, which contains the well tested PG4K
193
- operator version.
194
-
195
- In case you choose to use existing PG4K operator, remember to also specify
196
- ` --set edb-postgres-for-kubernetes-lts.enabled=false ` during the installation of the PG4K-PGD
197
- helm chart in the next section.
198
-
199
- #### 3. Setup PG4K-PGD
186
+ #### 2. Setup PG4K-PGD
200
187
201
188
Once the above deployments are ready, you can deploy the PG4K-PGD helm chart. taking care
202
- to set ` edb-postgres-for-kubernetes-lts.enabled ` to false if you PG4K already deployed,
203
- and set ` cert-manager.enabled ` to false if cert-manager is installed separately.
189
+ to set ` cert-manager.enabled ` to false if cert-manager is installed separately.
204
190
205
191
** Note:** in the following example, the flags setting the credentials were elided
206
192
to put the focus on the ` enabled=false ` condition. The flags may still be
@@ -213,19 +199,17 @@ helm upgrade --dependency-update \
213
199
--create-namespace \
214
200
edb/edb-postgres-distributed-for-kubernetes \
215
201
--set cert-manager.enabled=false
216
- --set edb-postgres-for-kubernetes-lts.enabled=false
217
202
```
218
203
219
- You can see the three separate namespaces, the same that would be created if
220
- installing manually without Helm charts .
204
+ You can see two seperate namespaces where cert-manager is installed in ` cert-manager `
205
+ namespaces .
221
206
222
207
``` sh
223
208
$ kubectl get ns
224
209
NAME STATUS AGE
225
210
…
226
211
cert-manager Active 24m
227
212
pgd-operator-system Active 55s
228
- postgresql-operator-system Active 5m33s
229
213
```
230
214
231
215
### Controlling the image repositories
@@ -238,14 +222,13 @@ subscription plan. This needs to be done in several places in the command-line
238
222
invocation.
239
223
240
224
The following example uses the ` k8s_standard_pgd ` registry in
241
- ` docker.enterprisedb.com ` .
242
- Note the multiple ` --set ` options, for the ` image.repository ` ,
243
- ` PGD_IMAGE_NAME ` and ` PGD_PROXY_IMAGE_NAME ` in addition to the
244
- ` edb-postgres-for-kubernetes-lts.image.repository ` where the PGD operator
245
- is pulled from. There are 4 in total
246
- - ` image.repository ` where the PG4K-PGD operator image is pulled from.
247
- - ` edb-postgres-for-kubernetes-lts.image.repository ` where the PG4K operator image is pulled from.
248
- - ` PGD_IMAGE_NAME ` and ` PGD_PROXY_IMAGE_NAME ` where the PGD and PGD Proxy image are pulled from.
225
+ ` docker.enterprisedb.com ` . Following is the description of multiple
226
+ set options.
227
+ - ` image.repository ` where the PG4K-PGD and PG4K operator image is pulled from, this is the repository without imageName, the default
228
+ operator image name is defined in the value file.
229
+ - ` PGD_IMAGE_NAME ` where the PGD image are pulled from.
230
+ - ` PGD_PROXY_IMAGE_NAME ` where PGD Proxy image are pulled from, usually
231
+ the same with ` PGD_IMAGE_NAME ` .
249
232
250
233
Assuming that you have your necessary credentials, please fill in the USERNAME
251
234
and PASSWORD below.
@@ -258,8 +241,7 @@ helm upgrade --dependency-update \
258
241
edb/edb-postgres-distributed-for-kubernetes \
259
242
--set image.imageCredentials.username=${USERNAME} \
260
243
--set image.imageCredentials.password=${PASSWORD} \
261
- --set image.repository=docker.enterprisedb.com/k8s_standard_pgd/pg4k-pgd \
262
- --set edb-postgres-for-kubernetes-lts.image.repository=docker.enterprisedb.com/k8s_standard_pgd/edb-postgres-for-kubernetes \
244
+ --set image.repository=docker.enterprisedb.com/k8s_standard_pgd \
263
245
--set config.data.PGD_IMAGE_NAME=docker.enterprisedb.com/k8s_standard_pgd/postgresql-pgd:15.6-5.5.1-1 \
264
246
--set config.data.PGD_PROXY_IMAGE_NAME=docker.enterprisedb.com/k8s_standard_pgd/edb-pgd-proxy:5.5.0
265
247
```
0 commit comments