[英]Helm chart ignoring config file or given key value
我不确定这个问题是与 promtail(使用的 helm 图表)有关还是与 helm 本身有关。
我想将 loki 图表的默认主机值更新为 kube.netes 上使用的本地主机,所以我尝试这样做:
helm upgrade --install --namespace loki promtail grafana/promtail --set client.url=http://loki:3100/loki/api/v1/push
并使用自定义 values.yaml 像这样:
helm upgrade --install --namespace loki promtail grafana/promtail -f promtail.yaml
但它仍然使用错误的默认值 url:
level=warn ts=2021-10-08T11:51:59.782636939Z caller=client.go:344 component=client host=loki-gateway msg="error sending batch, will retry" status=-1 error="Post \"http://loki-gateway/loki/api/v1/push\": dial tcp: lookup loki-gateway on 10.43.0.10:53: no such host"
如果我检查 config.yaml 它的使用它不使用我在安装过程中提供的内部 url:
root@promtail-69hwg:/# cat /etc/promtail/promtail.yaml
server:
log_level: info
http_listen_port: 3101
client:
url: http://loki-gateway/loki/api/v1/push
有任何想法吗? 或者我缺少什么?
谢谢
我不认为client.url
是 helm chart 中的一个值,而是您的应用程序正在使用的配置文件中的一个值。
尝试设置config.lokiAddress
:
config:
lokiAddress: http://loki-gateway/loki/api/v1/push
它被模板化到我提到的配置文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.