mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Merge pull request #94 from zioproto/tls-secrets-docs
Use type kubernetes.io/tls for adapter TLS certificates
This commit is contained in:
commit
df3d247308
1 changed files with 3 additions and 1 deletions
|
|
@ -2,13 +2,15 @@ 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 `make docker-build`. The image should be tagged as `directxman12/k8s-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
|
||||||
by the adapter for serving HTTPS traffic. For more information on how to
|
by the adapter for serving HTTPS traffic. For more information on how to
|
||||||
generate these certificates, see the [auth concepts
|
generate these certificates, see the [auth concepts
|
||||||
documentation](https://github.com/kubernetes-incubator/apiserver-builder/blob/master/docs/concepts/auth.md)
|
documentation](https://github.com/kubernetes-incubator/apiserver-builder/blob/master/docs/concepts/auth.md)
|
||||||
in the apiserver-builder repository.
|
in the apiserver-builder repository.
|
||||||
|
The kube-prometheus project published two scripts [gencerts.sh](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/experimental/custom-metrics-api/gencerts.sh)
|
||||||
|
and [deploy.sh](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/experimental/custom-metrics-api/deploy.sh) to create the `cm-adapter-serving-certs` secret.
|
||||||
|
|
||||||
3. `kubectl create namespace custom-metrics` to ensure that the namespace that we're installing
|
3. `kubectl create namespace custom-metrics` to ensure that the namespace that we're installing
|
||||||
the custom metrics adapter in exists.
|
the custom metrics adapter in exists.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue