Skip to content

Commit 1562d52

Browse files
committed
Fix link for private registry guidance
1 parent 7db3223 commit 1562d52

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

docs/content/guides/private-registries.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ draft: false
55
weight: 200
66
---
77

8-
PGO, the open source Postgres Operator, can use containers that are stored in private registries. There are a variety of techniques that are used to load containers from private registries, including [image pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/). This guide will demonstrate how to install PGO and deploy a Postgres cluster using the [Crunchy Data Customer Portal](https://access.crunchydata.com/) registry as an example.
8+
PGO, the open source Postgres Operator, can use containers that are stored in private registries.
9+
There are a variety of techniques that are used to load containers from private registries,
10+
including [image pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/).
11+
This guide will demonstrate how to install PGO and deploy a Postgres cluster using the
12+
[Crunchy Data Customer Portal](https://access.crunchydata.com/) registry as an example.
913

1014
## Create an Image Pull Secret
1115

12-
The Kubernetes documentation provides several methods for [creating image pull secrets]([image pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/)). You can choose the method that is most appropriate for your installation.
16+
The Kubernetes documentation provides several methods for creating
17+
[image pull secrets](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/).
18+
You can choose the method that is most appropriate for your installation. You will need to create
19+
image pull secrets in the namespace that PGO is deployed and in each namespace where you plan to
20+
deploy Postgres clusters.
1321

14-
You will need to create an image pull secret in the same namespace that PGO is deployed in. You will also need to create image pull secrets in each namespace you plan to deploy Postgres clusters into.
15-
16-
For example, to create an image pull secret for accessing the Crunchy Data Customer Portal image registry in the `postgres-operator` namespace, you can execute the following commands:
22+
For example, to create an image pull secret for accessing the Crunchy Data Customer Portal image
23+
registry in the `postgres-operator` namespace, you can execute the following commands:
1724

1825
```shell
1926
kubectl create ns postgres-operator
@@ -29,9 +36,12 @@ This creates an image pull secret named `crunchy-regcred` in the `postgres-opera
2936

3037
## Install PGO from a Private Registry
3138

32-
To [install PGO]({{< relref "installation/_index.md" >}}) from a private registry, you will need to set an image pull secret on the installation manifest.
39+
To [install PGO]({{< relref "installation/_index.md" >}}) from a private registry, you will need to
40+
set an image pull secret on the installation manifest.
3341

34-
For example, to set up an image pull secret using the [Kustomize install method]({{< relref "installation/_index.md" >}}) to install PGO from the [Crunchy Data Customer Portal](https://access.crunchydata.com/), you can set the following in the `install/bases/kustomization.yaml` manifest:
42+
For example, to set up an image pull secret using the [Kustomize install method]({{< relref "installation/_index.md" >}})
43+
to install PGO from the [Crunchy Data Customer Portal](https://access.crunchydata.com/), you can set
44+
the following in the `install/bases/kustomization.yaml` manifest:
3545

3646
```yaml
3747
images:
@@ -56,7 +66,8 @@ patchesJson6902:
5666
- name: crunchy-regcred
5767
```
5868
59-
If you are using a version of `kubectl` prior to `v1.21.0`, you will have to create an explicit patch file named `install-ops.yaml`:
69+
If you are using a version of `kubectl` prior to `v1.21.0`, you will have to create an explicit
70+
patch file named `install-ops.yaml`:
6071

6172
```yaml
6273
- op: remove
@@ -94,9 +105,11 @@ kubectl apply -k kustomize/install
94105

95106
## Deploy a Postgres cluster from a Private Registry
96107

97-
To deploy a Postgres cluster using images from a private registry, you will need to set the value of `spec.imagePullSecrets` on a `PostgresCluster` custom resource.
108+
To deploy a Postgres cluster using images from a private registry, you will need to set the value of
109+
`spec.imagePullSecrets` on a `PostgresCluster` custom resource.
98110

99-
For example, to deploy a Postgres cluster using images from the [Crunchy Data Customer Portal](https://access.crunchydata.com/) with an image pull secret in the `postgres-operator` namespace, you can use the following manifest:
111+
For example, to deploy a Postgres cluster using images from the [Crunchy Data Customer Portal](https://access.crunchydata.com/)
112+
with an image pull secret in the `postgres-operator` namespace, you can use the following manifest:
100113

101114
```yaml
102115
apiVersion: postgres-operator.crunchydata.com/v1beta1

0 commit comments

Comments
 (0)