Skip to content

Commit 0582438

Browse files
ValClarksonandrewlecuyer
authored andcommitted
Added documentation clarifying how to set the PGO_TARGET_NAMESPACE
in the kustomize installer in the examples repo when running in single namespace mode [ch11933]
1 parent 824c512 commit 0582438

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/content/installation/kustomize.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,17 @@ bases:
8585
- manager
8686
```
8787

88-
Note that `rbac/cluster` has been changed to `rbac/namespace`. With this configuration change,
89-
PGO will create a Role and RoleBinding, and will therefore only manage PostgreSQL clusters created
90-
within the namespace defined using the `namespace` setting in the
88+
Note that `rbac/cluster` has been changed to `rbac/namespace`.
89+
90+
As well as the PGO_TARGET_NAMESPACE environment variable located in the env section of the `kustomize/install/bases/manager/manager.yaml` file as follows:
91+
92+
```yaml
93+
env:
94+
- name: PGO_TARGET_NAMESPACE
95+
valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } }
96+
```
97+
98+
With these configuration changes, PGO will create a Role and RoleBinding, and will therefore only manage PostgreSQL clusters created within the namespace defined using the `namespace` setting in the
9199
`kustomize/install/bases/kustomization.yaml` file:
92100

93101
```yaml

0 commit comments

Comments
 (0)