vmagent: set consul datacenter (fix 0 discovered targets) #240

Merged
benvin merged 1 commits from benvin/vmagent-consul-datacenter into main 2026-07-07 00:05:31 +10:00
Showing only changes of commit 4f3c81a303 - Show all commits
+4
View File
@@ -99,6 +99,10 @@ spec:
consul_sd_configs:
- server: consul.service.consul:443
scheme: https
# Set datacenter explicitly so VM does not call /v1/agent/self
# (which needs agent:read that the anonymous token lacks); catalog
# and health reads work anonymously.
datacenter: au-syd1
tls_config:
ca_file: /etc/vmagent-tls/ca.crt
relabel_configs: