vmagent: set consul datacenter (fix 0 discovered targets) #240
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user