Browse Source

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

drymer 8 months ago
parent
commit
a265cba51f
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      prometheus-kube-state-metrics-arm/Dockerfile

+ 10
- 0
prometheus-kube-state-metrics-arm/Dockerfile View File

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

Loading…
Cancel
Save