[英]How can I set the prometheus.enabled flag to true in VMWare's Kubernetes FluentD Operator using the helm chart?
I currently have a Kubernetes FluentD operator [1] running in my environment.我目前有一个 Kubernetes FluentD 操作员[1]在我的环境中运行。 It deploys fine using the helm chart but I need to somehow set the prometheus-enabled
flag when deploying the helm chart.它使用舵图部署得很好,但我需要在部署舵图时以某种方式设置prometheus-enabled
标志。
The documentation states the following :文档说明如下:
usage: config-reloader [<flags>]
Regenerates Fluentd configs based Kubernetes namespace annotations against templates, reloading
Fluentd if necessary
Flags:
...
--prometheus-enabled Prometheus metrics enabled (default: false)
My question is, can I set this flag when I run the helm chart?我的问题是,我可以在运行舵图时设置这个标志吗? ie. IE。
helm upgrade --install kfo <prometheus-enabled=true> \\$CHART_URL --namespace \\$INSTALL_NAMESPACE -f kfo/config.yaml
where config.yaml
consists of :其中config.yaml
包括:
---
meta:
key: metadata
values:
region: ${AWS_REGION}
env: ${ENV}
cluster: ${KUBERNETES_CLUSTER_TYPE}
rbac:
create: true
image:
repository: vmware/kube-fluentd-operator
tag: v1.12.0
fluentd:
extraVolumeMounts:
- name: fluentd-template-mapping
mountPath: /templates
extraVolumes:
- name: fluentd-template-mapping
configMap:
defaultMode: 420
name: fluentd-template-mapping
If not, what can I do to set it?如果没有,我该怎么做才能设置它?
Thanks谢谢
I checked the chart and it appears you just need to add prometheusEnabled: true
to your config.yaml
:我检查了图表,看来您只需要在config.yaml
添加prometheusEnabled: true
:
---
meta:
key: metadata
values:
region: ${AWS_REGION}
env: ${ENV}
cluster: ${KUBERNETES_CLUSTER_TYPE}
rbac:
create: true
image:
repository: vmware/kube-fluentd-operator
tag: v1.12.0
fluentd:
extraVolumeMounts:
- name: fluentd-template-mapping
mountPath: /templates
extraVolumes:
- name: fluentd-template-mapping
configMap:
defaultMode: 420
name: fluentd-template-mapping
prometheusEnabled: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.