admin管理员组文章数量:1290942
This is regarding prometheus blackbox_exporter. I want to extract username and password value form Kubernetes secret. In order to achieve that, I added extraSecretMounts section in my value.yaml for helm chart; I also verified the keys under the mounthPath inside pod and can see that variables/values are available under /etc/prometheus/secret.
However, when I am testing the endpoint wget -qO- "http://localhost:9115/probe?target=;module=http_2xx_esb&debug=true"
. I get an authentication error.
Can someone please assist me with Configuration I am missing.
# Secret Mount for credentials
extraSecretMounts:
- name: credentials-secret
mountPath: /etc/prometheus/secret
secretName: my_secret
readOnly: true
defaultMode: 420
http_2xx:
prober: http
timeout: 2s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
follow_redirects: true
preferred_ip_protocol: "ip4"
tls_config:
insecure_skip_verify: false
basic_auth:
username: "$(my_username)"
password: "$(my_password)"
Thanks in advance!
本文标签: How to use Kubernetes secret under valueyaml for prometheus blackboxexporterStack Overflow
版权声明:本文标题:How to use Kubernetes secret under value.yaml for prometheus blackbox_exporter - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741521677a2383224.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论