postgres-operator deployment template: run operator as non-root, and with readonly filesystem (#582)

This commit is contained in:
Erik Inge Bolsø
2019-06-14 15:47:08 +02:00
committed by Felix Kunde
parent 35a1f2cff8
commit 028b834ea6
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -21,6 +21,10 @@ spec:
limits:
cpu: 2000m
memory: 500Mi
securityContext:
runAsUser: 1000
runAsNonRoot: true
readOnlyRootFilesystem: true
env:
# provided additional ENV vars can overwrite individual config map entries
- name: CONFIG_MAP_NAME