Set dnsConfig to change ndot value
Closed this issue · 2 comments
Is there a way to set the dnsConfig settings to lower the ndots value? I'm experiencing random timeouts when hitting Grafana cloud external endpoints. I've been able to fix some of these by adding a dot to the end of the endpoint; however, opencost for instance is hitting AWS endpoints that I can't modify.
Example:
spec:
dnsConfig:
options:
- name: ndots
value: "2"
It depends on the specific chart's configuration that allows it. The k8s-monitoring chart does not design how the OpenCost pods are deployed, it utilizes the OpenCost Helm chart to create the deployment. Unfortunately, it doesn't appear that they've exposed the ability to set dnsConfig
on their pods.
I'd open up an issue on their chart and when they support it, this chart will have the ability too.
Another option (I haven't used it, so I cannot vouch for it) is this webhook that'll add the dnsConfig to pods: https://github.com/karampok/dnsconfig-injector
I came across this config injector in my searches recently and haven't tried it as well, but I'll give it a go. Thanks!