This repository contains an implementation of the Kubernetes resource metrics, custom metrics, and external metrics API.
This adapter is therefore suitable for use with the autoscaling/v2 Horizontal Pod Autoscaler in Kubernetes 1.14+. It can also replace the metrics server on clusters that already run Prometheus and collect the appropriate metrics.
- Bump the corresponding versions in go.mod
$ cat go.mod
...
replace (
k8s.io/apimachinery kubernetes-1.14.2
k8s.io/client-go v11.0.0
)
...
- Execute:
$ go mod vendor