We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a1f2c commit 028b834Copy full SHA for 028b834
docker/Dockerfile
@@ -6,4 +6,9 @@ RUN apk --no-cache add ca-certificates
6
7
COPY build/* /
8
9
+RUN addgroup -g 1000 pgo
10
+RUN adduser -D -u 1000 -G pgo -g 'Postgres operator' pgo
11
+
12
+USER 1000:1000
13
14
ENTRYPOINT ["/postgres-operator"]
manifests/postgres-operator.yaml
@@ -21,6 +21,10 @@ spec:
21
limits:
22
cpu: 2000m
23
memory: 500Mi
24
+ securityContext:
25
+ runAsUser: 1000
26
+ runAsNonRoot: true
27
+ readOnlyRootFilesystem: true
28
env:
29
# provided additional ENV vars can overwrite individual config map entries
30
- name: CONFIG_MAP_NAME
0 commit comments