[prometheus-kube-state-metrics-arm] Initial commit

This commit is contained in:
drymer 2019-03-17 19:35:30 +01:00
parent 1bfb0165fa
commit a265cba51f
Signed by: drymer
GPG Key ID: A307D64D5DDFDAAD
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
FROM golang:1.12-alpine as build
RUN apk add -U git make && git clone \
https://github.com/kubernetes/kube-state-metrics/
RUN cd kube-state-metrics/ && sed -i "s/\$(shell go env GOARCH)/arm/" Makefile \
&& make build-local
FROM alpine:3.9
COPY --from=build /go/kube-state-metrics/kube-state-metrics /kube-state-metrics
EXPOSE 8080 8081
ENTRYPOINT ["/kube-state-metrics", "--port=8080", "--telemetry-port=8081"]