forked from mirrors/statsd_exporter
Merge pull request #409 from aleksandr-vin/aleksandr-vin-patch-1
Set numeric user to comply runAsNonRoot k8s policy
This commit is contained in:
commit
7ba3f6a841
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ ARG ARCH="amd64"
|
||||||
ARG OS="linux"
|
ARG OS="linux"
|
||||||
COPY .build/${OS}-${ARCH}/statsd_exporter /bin/statsd_exporter
|
COPY .build/${OS}-${ARCH}/statsd_exporter /bin/statsd_exporter
|
||||||
|
|
||||||
USER nobody
|
USER 65534
|
||||||
EXPOSE 9102 9125 9125/udp
|
EXPOSE 9102 9125 9125/udp
|
||||||
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
HEALTHCHECK CMD wget --spider -S "http://localhost:9102/metrics" -T 60 2>&1 || exit 1
|
||||||
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
ENTRYPOINT [ "/bin/statsd_exporter" ]
|
||||||
|
|
Loading…
Reference in a new issue