Add healthcheck
This commit is contained in:
parent
2cfd51347a
commit
48af0c7e18
@ -8,5 +8,10 @@ COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
|
|||||||
ARG GOARCH=amd64
|
ARG GOARCH=amd64
|
||||||
COPY ./cadvisor-${GOARCH} /usr/bin/cadvisor
|
COPY ./cadvisor-${GOARCH} /usr/bin/cadvisor
|
||||||
|
|
||||||
|
ENV CADVISOR_HEALTHCHECK_URL=http://localhost:8080/healthz
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s \
|
||||||
|
CMD wget --quiet --tries=1 --spider $CADVISOR_HEALTHCHECK_URL || exit 1
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
|
ENTRYPOINT ["/usr/bin/cadvisor", "-logtostderr"]
|
||||||
|
Loading…
Reference in New Issue
Block a user