Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Oct 17, 2023
1 parent 1509a49 commit 60c8d5b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ You can then run `helm search repo edb` to see the all the available charts.
helm upgrade --install edb-pg4k \
--namespace postgresql-operator-system \
--create-namespace \
--set image.repository=docker.enterprisedb.com/k8s_enterprise/edb-postgres-for-kubernetes \
--set image.imageCredentials.username=k8s_enterprise \
--set image.imageCredentials.password=<THE-TOKEN> \
--set image.imageCredentials.create=true \
edb/edb-postgres-for-kubernetes
```

Expand All @@ -46,6 +42,31 @@ edb-pg4k-edb-postgres-for-kubernetes 1/1 1 1 11s
Once it is ready, you can verify that you can deploy the sample cluster
suggested by the helm chart.

### Deploying EDB Postgres for Kubernetes operator (PG4K) from a private registry

By default, PG4K will be deployed using [Quay.io](https://quay.io/repository/enterprisedb/cloud-native-postgresql)
images which can be downloaded without a pullSecret but will require a [license key](https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/license_keys/).

The operator and operand images necessary for PG4K may also be pulled from `k8s_enterprise`
or `k8s_standard` repositories of `docker.enterprisedb.com`, available with an EDB subscription plan.
To do that, you need to configure the chart to pull images from a private registry (this similarly works
in case you want to host the operator images in your own private registry).

For example, to deploy via the `k8s_enterprise` repository:

```console
helm upgrade --install edb-pg4k \
--namespace postgresql-operator-system \
--create-namespace \
--set image.repository=docker.enterprisedb.com/k8s_enterprise/edb-postgres-for-kubernetes \
--set image.imageCredentials.username=k8s_enterprise \
--set image.imageCredentials.password=<THE-TOKEN> \
--set image.imageCredentials.create=true \
--set imagePullSecrets[0].name=postgresql-operator-pull-secret \
--set config.data.PULL_SECRET_NAME=postgresql-operator-pull-secret \
edb/edb-postgres-for-kubernetes
```

## Deployment of the EDB Postgres Distributed for Kubernetes operator (PG4K-PGD)

**Note:** the `edb-postgres-distributed-for-kubernetes` chart will by default
Expand Down
2 changes: 1 addition & 1 deletion charts/edb-postgres-for-kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
replicaCount: 1

image:
repository: docker.enterprisedb.com/k8s_enterprise/edb-postgres-for-kubernetes # quay.io/enterprisedb/cloud-native-postgresql
repository: quay.io/enterprisedb/cloud-native-postgresql
pullPolicy: IfNotPresent
# -- Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down

0 comments on commit 60c8d5b

Please sign in to comment.