Skip to content

Commit 4f2c3b0

Browse files
authored
Run as non-root and root group for OpenShift compatibility ADDENDUM (#5)
1 parent 17c70a4 commit 4f2c3b0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ RUN CGO_ENABLED=0 go build \
3030
FROM alpine:3.17
3131
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3232
COPY --from=builder /app/bin/kminion /app/kminion
33-
RUN chown -R 1001:0 /app/kminion \
34-
&& chmod -R g=u /app/kminion
35-
USER 1001
33+
RUN chmod -R +x /app/kminion
3634

3735
ENTRYPOINT ["/app/kminion"]

charts/kminion/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ podAnnotations: {}
2828
# prometheus.io/port: "8080"
2929
# prometheus.io/path: "/metrics"
3030

31-
podSecurityContext:
32-
runAsUser: 99
33-
fsGroup: 99
31+
podSecurityContext: {}
32+
# runAsUser: 99
33+
# fsGroup: 99
3434

3535
## See `kubectl explain poddisruptionbudget.spec` for more
3636
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/

0 commit comments

Comments
 (0)