Skip to content

Commit e4a4059

Browse files
committed
docs: add non-root user info
1 parent dd6653e commit e4a4059

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

deployment/helm/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@
3535
* k -n onyx delete pvc vespa-storage-da-vespa-0
3636
* If you didn't disable Postgres persistence earlier, you may want to delete that PVC too.
3737

38+
## Run as non-root user
39+
By default, some onyx containers run as root. If you'd like to explicitly run the onyx containers as a non-root user, update the values.yaml file for the following components:
40+
* `celery_shared`, `api`, `webserver`, `indexCapability`, `inferenceCapability`
41+
```yaml
42+
securityContext:
43+
runAsNonRoot: true
44+
runAsUser: 1001
45+
```
46+
* `vespa`
47+
```yaml
48+
podSecurityContext:
49+
fsGroup: 1000
50+
securityContext:
51+
privileged: false
52+
runAsUser: 1000
53+
```
54+
3855
## Resourcing
3956
In the helm charts, we have resource suggestions for all Onyx-owned components.
4057
These are simply initial suggestions, and may need to be tuned for your specific use case.

0 commit comments

Comments
 (0)