1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Merge pull request #468 from eatwithforks/jylee/user

Run as user 1000 so pod can be runAsNonRoot for security purposes
This commit is contained in:
Kubernetes Prow Robot
2020-12-14 06:43:28 -08:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ FROM scratch
MAINTAINER Avesh Agarwal <avesh.ncsu@gmail.com>
USER 1000
COPY --from=0 /go/src/sigs.k8s.io/descheduler/_output/bin/descheduler /bin/descheduler
CMD ["/bin/descheduler", "--help"]

View File

@@ -15,6 +15,8 @@ FROM scratch
MAINTAINER Avesh Agarwal <avesh.ncsu@gmail.com>
USER 1000
COPY _output/bin/descheduler /bin/descheduler
CMD ["/bin/descheduler", "--help"]