mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Merge pull request #419 from dgrisonnet/default-gcr
Default images to the official k8s.gcr.io and gcr.io registries
This commit is contained in:
commit
89425b72cc
4 changed files with 13 additions and 9 deletions
4
Makefile
4
Makefile
|
|
@ -1,5 +1,5 @@
|
||||||
REGISTRY?=directxman12
|
REGISTRY?=gcr.io/k8s-staging-prometheus-adapter
|
||||||
IMAGE?=k8s-prometheus-adapter
|
IMAGE?=prometheus-adapter
|
||||||
ARCH?=$(shell go env GOARCH)
|
ARCH?=$(shell go env GOARCH)
|
||||||
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
ALL_ARCH=amd64 arm arm64 ppc64le s390x
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Example Deployment
|
Example Deployment
|
||||||
==================
|
==================
|
||||||
|
|
||||||
1. Make sure you've built the included Dockerfile with `make docker-build`. The image should be tagged as `directxman12/k8s-prometheus-adapter:latest`.
|
1. Make sure you've built the included Dockerfile with `TAG=latest make container`. The image should be tagged as `gcr.io/k8s-staging-prometheus-adapter:latest`.
|
||||||
|
|
||||||
2. Create a secret called `cm-adapter-serving-certs` with two values:
|
2. Create a secret called `cm-adapter-serving-certs` with two values:
|
||||||
`serving.crt` and `serving.key`. These are the serving certificates used
|
`serving.crt` and `serving.key`. These are the serving certificates used
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ spec:
|
||||||
serviceAccountName: custom-metrics-apiserver
|
serviceAccountName: custom-metrics-apiserver
|
||||||
containers:
|
containers:
|
||||||
- name: custom-metrics-apiserver
|
- name: custom-metrics-apiserver
|
||||||
image: directxman12/k8s-prometheus-adapter-amd64
|
image: gcr.io/k8s-staging-prometheus-adapter-amd64
|
||||||
args:
|
args:
|
||||||
- --secure-port=6443
|
- --secure-port=6443
|
||||||
- --tls-cert-file=/var/run/serving-cert/serving.crt
|
- --tls-cert-file=/var/run/serving-cert/serving.crt
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,16 @@ instead, you'll need to make a few adjustments to the way you expose
|
||||||
metrics to Prometheus.
|
metrics to Prometheus.
|
||||||
|
|
||||||
The adapter has different images for each arch, which can be found at
|
The adapter has different images for each arch, which can be found at
|
||||||
`directxman12/k8s-prometheus-adapter-${ARCH}`. For instance, if you're on
|
`gcr.io/k8s-staging-prometheus-adapter/prometheus-adapter-${ARCH}`. For
|
||||||
an x86_64 machine, use the `directxman12/k8s-prometheus-adapter-amd64`
|
instance, if you're on an x86_64 machine, use
|
||||||
image.
|
`gcr.io/k8s-staging-prometheus-adapter/prometheus-adapter-amd64` image.
|
||||||
|
|
||||||
If you're feeling adventurous, you can build the latest version of the
|
There is also an official multi arch image available at
|
||||||
custom metrics adapter by running `make docker-build`.
|
`k8s.gcr.io/prometheus-adapter/prometheus-adapter:${VERSION}`.
|
||||||
|
|
||||||
|
If you're feeling adventurous, you can build the latest version of
|
||||||
|
prometheus-adapter by running `make container` or get the latest image from the
|
||||||
|
staging registry `gcr.io/k8s-staging-prometheus-adapter/prometheus-adapter`.
|
||||||
|
|
||||||
Special thanks to [@luxas](https://github.com/luxas) for providing the
|
Special thanks to [@luxas](https://github.com/luxas) for providing the
|
||||||
demo application for this walkthrough.
|
demo application for this walkthrough.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue