Skip to content

Commit dd46de7

Browse files
committed
Add documentation for postgres securitycontext issue
1 parent 861993d commit dd46de7

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ vi my-values.yaml
7373

7474
By default, this Helm Chart is intended to run in hardened K8S environments, notably with non-root permissions. To use it, ensure that your storage will be writeable by the geonode technical user; UID and GID can be configured in the values file.
7575

76-
An exception to this rule is the `geonode/geoserver` Pod, because the current `geonode/geoserver` Docker Image does not support running as non-root out-of-the-box, therefore, default chart settings for this image are set to run as root. If you wish to run this Pod as non-root, proceed as follows:
76+
There are two exceptions to this rule:
77+
- the `geonode-postgres` Pod does not have full securityContext out-of-the-box, because the subchart `postgres-operator` does not support that yet. A workaround is available if you want the full securityContext, for that, set `postgres.kyvernoSecurityContext`to `enabled` in your values YAML.
78+
- the `geonode/geoserver` Pod, because the current `geonode/geoserver` Docker Image does not support running as non-root out-of-the-box, therefore, default chart settings for this image are set to run as root. If you wish to run this Pod as non-root, proceed as follows:
7779

78-
Create a custom image with the provided script as follows:
80+
Create a custom image with the provided script:
7981
```bash
8082
cd geoserver-nonroot
8183
./build.sh

charts/geonode/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ If `geonode.gatewayApi.hostnames` is left empty, the route defaults to
224224
| postgres.external.ssl | string | `"prefer"` | |
225225
| postgres.geodata_databasename_and_username | string | `"geodata"` | geoserver database name and username |
226226
| postgres.geonode_databasename_and_username | string | `"geonode"` | geonode database name and username |
227+
| postgres.kyvernoSecurityContext.enabled | bool | `false`| Provide full securityContext to postgres Pod via Kyverno, as postgres-operator does not yet fully support securityContext |
227228
| postgres.operator.allowedSourceRanges | list | `[]` | when one or more load balancers are enabled for the cluster, this parameter defines the comma-separated range of IP networks (in CIDR-notation). The corresponding load balancer is accessible only to the networks defined by this parameter. Optional, when empty the load balancer service becomes inaccessible from outside of the Kubernetes cluster. |
228229
| postgres.operator.annotations | object | `{}` | additional annotation for postgresql object |
229230
| postgres.operator.clone | object | `{}` | |

0 commit comments

Comments
 (0)