Skip to content

Instantly share code, notes, and snippets.

@kopwei
Last active March 9, 2020 18:35
Show Gist options
  • Save kopwei/387222d1c0c0fec12cb8ca457f2dad82 to your computer and use it in GitHub Desktop.
Save kopwei/387222d1c0c0fec12cb8ca457f2dad82 to your computer and use it in GitHub Desktop.
Enabling rancher monitoring on arm64 platform

This trying to explain how to enable monitoring on k3s/arm64

Deployments

prometheus-operator-monitoring-operator

  • coreos-configmap-reload
  • coreos-prometheus-operator

grafana-cluster-monitoring

  • nginx

exporter-kube-state-cluster-monitoring

  • kube-state-metrics

kube-state-metrics

FROM golang:1.13-alpine AS builder
ARG VERSION

RUN apk add make git

WORKDIR /opt
RUN git clone https://github.com/kubernetes/kube-state-metrics.git . \
 && git fetch --tags \
 && git checkout $VERSION \
 && make build-local

# -----------------------------------------
FROM gcr.io/distroless/static

COPY --from=builder /opt/kube-state-metrics /
USER nobody
ENTRYPOINT ["/kube-state-metrics", "--port=8080", "--telemetry-port=8081"]

EXPOSE 8080 8081

Jobs

operator-init-monitoring-operator

  • istio-kubectl

operator-init-cluster-monitoring

  • istio-kubectl

Daemonset

exporter-node-cluster-monitoring

  • rancher/prom-node-exporter:v0.17.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment