英文:
Remove Grafana and Alertmanager while installing kube-prometheus-stack
问题
I want to install the kube-prometheus-stack
(https://github.com/prometheus-operator/kube-prometheus) but exclude Grafana
and Alertmanager
from the helm install as I am installing them separately.
我想安装 kube-prometheus-stack
(https://github.com/prometheus-operator/kube-prometheus),但要在Helm安装时排除 Grafana
和 Alertmanager
,因为我要单独安装它们。
I would like to install only the following components:
我只想安装以下组件:
-
Prometheus Operator
-
Prometheus
-
Prometheus node-exporter
-
Prometheus Adapter for Kubernetes Metrics APIs
-
kube-state-metrics
-
Prometheus操作员
-
Prometheus
-
Prometheus节点导出器
-
用于Kubernetes Metrics API的Prometheus适配器
-
kube-state-metrics
I tried to create a values.yaml
file locally and install using helm chart but I am not successful doing so.
我尝试在本地创建一个 values.yaml
文件并使用Helm图表进行安装,但未成功。
What's the best way to do this?
如何最好地实现这一目标?
TIA. (Thanks in advance)
谢谢提前。
英文:
I want to install the kube-prometheus-stack
(https://github.com/prometheus-operator/kube-prometheus) but exclude Grafana
and Alertmanager
from the helm install as I am installing them separately.
I would like to install only the following components:
- Prometheus Operator
- Prometheus
- Prometheus node-exporter
- Prometheus Adapter for Kubernetes Metrics APIs
- kube-state-metrics
I tried to create a values.yaml
file locally and install using helm chart but I am not successful doing so.
What's the best way to do this?
TIA.
答案1
得分: 2
以下是翻译好的部分:
这些是kube-prometheus-stack
Helm 图表中的子图表(依赖项)。通常,所有子图表都有类似以下的内容:
## subchartname:
## enabled: true
grafana:
enabled: false
您还可以在Chart.yaml
文件的dependencies
部分查看启用/禁用依赖项的条件键。
链接:
英文:
Those are subcharts(dependencies) in kube-prometheus-stack
helm chart. usually all subcharts have something like this:
## subchartname:
## enabled: true
grafana:
enabled: false
and also You can check dependencies
section in Chart.yaml
file and see what is the condition key to enable/disable a dependency.
Links:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论