parent
111d02b032
commit
4e589988d0
|
|
@ -0,0 +1,25 @@
|
|||
FROM bitnami/minideb:stretch as buildenv
|
||||
|
||||
RUN install_packages ca-certificates libc6 wget
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/kube-state-metrics-1.3.1-0-linux-amd64-debian-9.tar.gz && \
|
||||
echo "90743497135ede4498d26ec46955014f4c2195f7affe8f5e9c2c5f9c5a9ce8d1 /tmp/bitnami/pkg/cache/kube-state-metrics-1.3.1-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/kube-state-metrics-1.3.1-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/kube-state-metrics-1.3.1-0-linux-amd64-debian-9.tar.gz
|
||||
|
||||
##################
|
||||
|
||||
FROM bitnami/minideb:stretch
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
COPY --from=buildenv /opt/bitnami/kube-state-metrics /opt/bitnami/kube-state-metrics
|
||||
ENV BITNAMI_APP_NAME="kube-state-metrics" \
|
||||
BITNAMI_IMAGE_VERSION="1.3.1-debian-9-r0" \
|
||||
PATH="/opt/bitnami/kube-state-metrics/bin:$PATH"
|
||||
|
||||
RUN install_packages ca-certificates
|
||||
|
||||
EXPOSE 8080 8081
|
||||
|
||||
WORKDIR /opt/bitnami/kube-state-metrics
|
||||
USER 1001
|
||||
ENTRYPOINT ["kube-state-metrics","--port=8080","--telemetry-port=8081"]
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
kube-state-metrics:
|
||||
image: bitnami/kube-state-metrics:1
|
||||
ports:
|
||||
- '8080:8080'
|
||||
- '8081:8081'
|
||||
volumes:
|
||||
- kube-state-metrics_data:/bitnami
|
||||
volumes:
|
||||
kube-state-metrics_data:
|
||||
driver: local
|
||||
|
|
@ -23,8 +23,8 @@ Deploy Kube-state-metrics on your [Kubernetes cluster](https://github.com/kubern
|
|||
# Supported tags and respective `Dockerfile` links
|
||||
|
||||
* [`1-ol-7`, `1.3.1-ol-7-r14` (1/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-kube-state-metrics/blob/1.3.1-ol-7-r14/1/ol-7/Dockerfile)
|
||||
* [`1-debian-9`, `1.3.1-debian-9-r0` (1/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-kube-state-metrics/blob/1.3.1-debian-9-r0/1/debian-9/Dockerfile)
|
||||
* [`1-debian-8`, `1.3.1-debian-8-r43`, `1`, `1.3.1`, `1.3.1-r43`, `latest` (1/Dockerfile)](https://github.com/bitnami/bitnami-docker-kube-state-metrics/blob/1.3.1-debian-8-r43/1/Dockerfile)
|
||||
* [`1-debian-9`, `0.0.0-debian-9-r0` (1/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-kube-state-metrics/blob/0.0.0-debian-9-r0/1/debian-9/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/kube-state-metrics GitHub repo](https://github.com/bitnami/bitnami-docker-kube-state-metrics).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue