简体   繁体   English

如何使用舵图在 VMWare 的 Kubernetes FluentD Operator 中将 prometheus.enabled 标志设置为 true?

[英]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谢谢


Links链接

  1. VMWare's fluentd operator - https://github.com/vmware/kube-fluentd-operator VMWare 的 fluentd operator - https://github.com/vmware/kube-fluentd-operator

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.

相关问题 如何为 VMWare 的 fluentd 操作员安装 ConfigMap 卷? - How do I mount a ConfigMap volume for VMWare's fluentd operator? 我如何在 Kubernetes 上过滤 fluentD 日志? - How i filter fluentD logs on kubernetes? 如何使用 fluentd 仅解析错误日志 - how can i parse only error logs using fluentd 如何使用 helm-chart 为 nginx-ingress 设置 AWS ELB 名称 - How to set AWS ELB name for nginx-ingress using the helm-chart 在 Kube.netes/Helm 图表上安装 AWS Secrets Manager - Mounting AWS Secrets Manager on Kubernetes/Helm chart 舵图无法在普罗米修斯目标中看到cloudwatch出口商 - helm chart unable to see cloudwatch exporter in prometheus target 如何使用fluentd将1小时前的文件上传到S3? - How to upload 1 hour old files to S3 using fluentd? Kubernetes:如何使用awsElasticBlockStore将副本数设置为1? - Kubernetes: How can I set the number of replicas more than 1 using awsElasticBlockStore? 如何在 Kubernetes 1.1 上使用 Fluentd/Elasticsearch/Ikebana 实现日志记录? - How to implement logging with Fluentd/Elasticsearch/Ikebana on Kubernetes 1.1? 如何在 Kubernetes yaml 文件中动态设置包含 URL(带斜杠)的值并防止:替换命令中的错误标志 - How to dynamically set values containing URLs (with slashes) in Kubernetes yaml files & prevent: bad flag in substitute command
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM