Product Docs
Open Source
Education
Minimal Kube State Metrics Image
The image is available on cgr.dev:
cgr.dev
docker pull cgr.dev/chainguard/kube-state-metrics:latest
To test:
$ docker run cgr.dev/chainguard/kube-state-metrics
There are several methods to deploy the kube-state-metrics, but we will use the helm method.
helm
We should add the prometheus-community Helm repository to our repositories list:
prometheus-community
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update
Next, we can install the kube-state-metrics with the following command:
helm upgrade --install cg-test \ prometheus-community/kube-state-metrics \ --set image.repository=chainguard/kube-state-metrics \ --set image.registry=cgr.dev \ --set image.tag=<set to the latest chainguard tag>
Once the kube-state-metrics has been deployed, verify the pods are running:
kubectl get pods -l app.kubernetes.io/name=kube-state-metrics