From c70e4d8426ce7e2189ca38ae72709e4a9c435ff2 Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Thu, 23 May 2024 20:53:35 -0700 Subject: [PATCH] [website] servicemonitorCRD is need before install prometheus.yaml (#2259) * servicemonitorCustomResourceDefinition is need before install prometheus.yaml Signed-off-by: lowang-bh * Update site/content/en/docs/installation/_index.md Co-authored-by: Yuki Iwai Signed-off-by: lowang-bh --------- Signed-off-by: lowang-bh Co-authored-by: lowang-bh Co-authored-by: Yuki Iwai --- site/content/en/docs/installation/_index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/content/en/docs/installation/_index.md b/site/content/en/docs/installation/_index.md index fab92d5fd0..54bda9fb09 100644 --- a/site/content/en/docs/installation/_index.md +++ b/site/content/en/docs/installation/_index.md @@ -64,6 +64,10 @@ kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases To allow [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator) to scrape metrics from kueue components, run the following command: +> **Note**: This feature depends on [servicemonitor CRD](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/setup/0servicemonitorCustomResourceDefinition.yaml), please ensure that CRD is installed first. +> We can follow `https://prometheus-operator.dev/docs/prologue/quick-start/` to install it. +> + ```shell kubectl apply --server-side -f https://github.com/kubernetes-sigs/kueue/releases/download/$VERSION/prometheus.yaml ```