Reputation: 62736
I am reading the README file for kube-prometheus and is confused by the following passage:
This stack provides resource metrics by deploying the Prometheus Adapter. This adapter is an Extension API Server and Kubernetes needs to be have this feature enabled, otherwise the adapter has no effect, but is still deployed.
What does it mean to have the Extension API Server feature enabled? I have consulted the page on feature gates in K8s and on setting up an Extension API Server but neither seem to indicate an existence of a dedicated feature to enable for Extension API Servers.
What am I missing?
P.S.
I use an Azure managed K8s cluster.
Upvotes: 0
Views: 253
Reputation: 2685
I think the documentation you need is under enabling aggregation.
The section you are looking for is https://kubernetes.io/docs/tasks/extend-kubernetes/configure-aggregation-layer/#enable-kubernetes-apiserver-flags
It looks like the flags needed are
--requestheader-client-ca-file=<path to aggregator CA cert>
--requestheader-allowed-names=front-proxy-client
--requestheader-extra-headers-prefix=X-Remote-Extra-
--requestheader-group-headers=X-Remote-Group
--requestheader-username-headers=X-Remote-User
--proxy-client-cert-file=<path to aggregator proxy cert>
--proxy-client-key-file=<path to aggregator proxy key>
Upvotes: 1