dotbalo ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
..
.gitignore ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
README.md ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-auth-reader-role-binding.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-deployment.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-resource-reader-cluster-role-binding.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-service-account.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiserver-service.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-apiservice.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-cluster-role.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
custom-metrics-resource-reader-cluster-role.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
deploy.sh ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
gencerts.sh ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
hpa-custom-metrics-cluster-role-binding.yaml ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky
teardown.sh ea46cbfc98 deploy prometheus by prometheus-operator před 6 roky

README.md

Custom Metrics API

The custom metrics API allows the HPA v2 to scale on arbirary metrics.

This directory contains an example deployment of the custom metrics API adapter using Prometheus as the backing monitoring system.

In order to deploy the custom metrics adapter for Prometheus you need to generate TLS certficates used to serve the API. An example of how these could be generated can be found in ./gencerts.sh, note that this is not recommended to be used in production. You need to employ a secure PKI strategy, this is merely an example to get started and try it out quickly.

Once the generated Secret with the certificates is in place, you can deploy everything in the monitoring namespace using ./deploy.sh.

When you're done, you can teardown using the ./teardown.sh script.