mark
mark

Reputation: 62736

What does it mean " Kubernetes needs to be have the Extension API Server feature enabled"?

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

Answers (1)

Colwin
Colwin

Reputation: 2685

I think the documentation you need is under enabling aggregation.

https://kubernetes.io/docs/tasks/extend-kubernetes/configure-aggregation-layer/#enable-kubernetes-apiserver-flags

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

Related Questions