Customized build of the Kubernetes Prometheus Adapter for serving custom, resource, and external metrics to the Kubernetes metrics APIs.
This image is a thin wrapper around the upstream
registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.12.0 image. It keeps
the upstream binary, entrypoint, and command unchanged, and only re-declares the
runtime user.
The Dockerfile briefly switches to root and then explicitly sets the runtime
user back to 65534:65534 (the nobody/nogroup UID/GID). No files, binaries,
or configuration in the base image are added or altered. The net effect versus
upstream is an explicit, pinned non-root runtime user.
docker pull n8500x/prometheus-adapter
Prometheus Adapter is not run standalone — it is deployed in-cluster as a
Kubernetes API extension (an APIService backing custom.metrics.k8s.io,
external.metrics.k8s.io, and/or metrics.k8s.io). Deploy it the usual way,
typically via the upstream Helm chart or manifests, pointing the image at
n8500x/prometheus-adapter and supplying your adapter config and Prometheus URL.
registry.k8s.io/prometheus-adapter/prometheus-adapter:v0.12.065534:65534
(nobody/nogroup). Everything else — the adapter binary, ENTRYPOINT, and
CMD — is inherited unchanged from the upstream image.65534:65534 (non-root).--prometheus-url flag through your deployment
(e.g. a mounted ConfigMap and container args), exactly as with the upstream
image.docker build -t n8500x/prometheus-adapter C:/Users/luked/github/docker/prometheus-adapter
65534:65534.USER root step in the Dockerfile performs no modifications before
returning to the non-root user.65534 requires that any mounted config/cert paths be readable
by that user.Content type
Image
Digest
sha256:2f499b02f…
Size
36.5 MB
Last updated
over 1 year ago
docker pull n8500x/prometheus-adapter:v0.12.0-v1.0.0