-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set securityContext for operator and spilo #341
base: main
Are you sure you want to change the base?
Conversation
133c133
< allowPrivilegeEscalation: true
---
> allowPrivilegeEscalation: false
255c255,257
< securityContext: {}
---
> securityContext:
> runAsGroup: 101
> runAsUser: 101 Config Flag in Helm Chart working as well |
However:
|
From the documentation:
|
Well, |
Spilo container is running as user
Cron seemts to work as well:
and after a couple of minutes, one more backup:
And, just for good measure, backups are stored to the correct bucket as well:
UPDATE: And one more...
|
Prometheus Exporter is still working as well:
|
And so is fluentbit:
|
Looking at the spec, it looks allright too:
containers:
- name: postgres
# [..]
securityContext:
allowPrivilegeEscalation: true # required for cron
privileged: false
readOnlyRootFilesystem: false
# [..]
securityContext:
runAsGroup: 101
runAsUser: 101
spec:
containers:
- name: postgres-operator
# [..]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
# [..]
|
No description provided.