prometheus-adapter/deploy
Solly Ross 6c8f44623e Add tests for the resource metrics provider
This adds basic tests for the resource metrics provider, and fixes up
the default config slightly.
2018-10-03 11:05:43 -04:00
..
manifests Add tests for the resource metrics provider 2018-10-03 11:05:43 -04:00
Dockerfile Update Makefile to release and build for multiple platforms 2017-06-26 20:11:15 +03:00
README.md Improve docs about TLS secret 2018-07-24 13:15:24 +02:00

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.

  2. Create a secret called cm-adapter-serving-certs with two values: serving.crt and serving.key. These are the serving certificates used by the adapter for serving HTTPS traffic. For more information on how to generate these certificates, see the auth concepts documentation in the apiserver-builder repository. The kube-prometheus project published two scripts gencerts.sh and 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 the custom metrics adapter in exists.

  4. kubectl create -f manifests/, modifying the Deployment as necessary to point to your Prometheus server, and the ConfigMap to contain your desired metrics discovery configuration.