Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Provide FAQ entry about using multiple installations & metric servers #950

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion data/faq20.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,41 @@ Because KEDA primarily serves metrics for metric sources outside of the Kubernet

This is why KEDA registers the `v1beta1.external.metrics.k8s.io` namespace in the API service. However, this is just an implementation detail as both offer the same functionality.

Read [this article](https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics) by Google Cloud to learn more.
Read [about the different metric APIs](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis) or [this article](https://cloud.google.com/kubernetes-engine/docs/concepts/custom-and-external-metrics) by Google Cloud to learn more.
"""
type = "Kubernetes"

[[qna]]
q = "Can I run multiple metric servers serving external metrics in the same cluster?"
a = """
Unfortunately, you cannot do that.

Kubernetes currently only supports one metric server serving `external.metrics.k8s.io` metrics per cluster. This is because only one API Service can be registered to handle external metrics.

If you want to know what external metric server is currently registered, you can use the following command:

```shell
~ kubectl get APIService/v1beta1.external.metrics.k8s.io
NAME SERVICE AVAILABLE AGE
v1beta1.external.metrics.k8s.io keda-system/keda-operator-metrics-apiserver True 457d
```

Once a new metric server is installed, it will overwrite the existing API Server registration and take over the `v1beta1.external.metrics.k8s.io` namespace. This will cause the previously installed metric server to be ignored.

There is an [open proposal](https://github.com/kubernetes-sigs/custom-metrics-apiserver/issues/70) to allow multiple metric servers in the same cluster, but it's not implemented yet.
"""
type = "Kubernetes"

[[qna]]
q = "Can I run multiple installations of KEDA in the same cluster?"
a = """
Unfortunately, you cannot do that.

This is a limitation that is because Kubernetes does not allow you to run multiple metric servers in the same cluster that serve external metrics.

Also, KEDA does not allow you to share a single metric server across multiple operator installations.

Learn more in the "Can I run multiple metric servers serving external metrics in the same cluster?" FAQ entry.
"""
type = "Kubernetes"

Expand Down