Add documentation on disabling debug mode with Kustomize
This was not entirely clear that PGO installed with debug mode
enabled by default. The documentation now indicates this and
provides instructions for how to do so.
@@ -42,7 +42,7 @@ images:
newTag: {{< param postgresOperatorTag >}}
```
-Additionally, please note that the Kustomize install project will also create a namespace for PGO
+Please note that the Kustomize install project will also create a namespace for PGO
by default (though it is possible to install without creating the namespace, as shown below). To
modify the name of namespace created by the installer, the `kustomize/install/namespace.yaml`
should be modified:
@@ -54,15 +54,33 @@ metadata:
name: custom-namespace
```
-Additionally, the `namespace` setting in `kustomize/install/bases/kustomization.yaml` should be
+The `namespace` setting in `kustomize/install/bases/kustomization.yaml` should be
modified accordingly.
```yaml
namespace: custom-namespace
```
-Additional Kustomize overlays can then also be created to further patch and customize the
-installation according to your specific needs.
+By default, PGO deploys with debug logging turned on. If you wish to disable this, you need to set the `CRUNCHY_DEBUG` environmental variable to `"false"` that is found in the `kustomize/install/bases/manager/manager.yaml` file. You can add the following to your kustomization to disable debug logging:
+
+```yaml
+patchesStrategicMerge:
+- |-
+ apiVersion: apps/v1
+ kind: Deployment
+ metadata:
+ name: pgo
+ spec:
+ template:
+ spec:
+ containers:
+ - name: operator
+ env:
+ - name: CRUNCHY_DEBUG
+ value: "false"
+```
+
+You can also create additional Kustomize overlays to further patch and customize the installation according to your specific needs.
### Installation Mode
