Skip to content
πŸ“‰ Built-from-source container image of Kubernetes' kube-state-metrics server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile.glibc
Dockerfile.musl
LICENSE
README.md

README.md

kube-state-metrics (container image)

Built-from-source container image of Kubernetes' kube-state-metrics server

Tags

Docker Hub

Available on Docker Hub as ricardbejarano/kube-state-metrics:

Quay

Available on Quay as:

Features

  • Super tiny (glibc-based image is about 42.9MB, musl-based image is about 41.5MB)
  • Compiled from source during build time
  • Built FROM scratch, with zero bloat (see Filesystem)
  • Reduced attack surface (no shell, no UNIX tools, no package manager...)
  • Runs as unprivileged (non-root) user

Building

  • To build the glibc-based image: docker build -t kube-state-metrics:glibc -f Dockerfile.glibc .
  • To build the musl-based image: docker build -t kube-state-metrics:musl -f Dockerfile.musl .

Filesystem

glibc

Based on the glibc implementation of libc. Dynamically linked.

/
β”œβ”€β”€ etc/
β”‚   β”œβ”€β”€ group
β”‚   └── passwd
β”œβ”€β”€ kube-state-metrics
β”œβ”€β”€ lib/
β”‚   └── x86_64-linux-gnu/
β”‚       β”œβ”€β”€ libc.so.6
β”‚       └── libpthread.so.0
└── lib64/
    └── ld-linux-x86-64.so.2

musl

Based on the musl implementation of libc. Statically linked.

/
β”œβ”€β”€ etc/
β”‚   β”œβ”€β”€ group
β”‚   └── passwd
β”œβ”€β”€ kube-state-metrics
└── lib/
    └── ld-musl-x86_64.so.1

License

See LICENSE.

You can’t perform that action at this time.