vmagent: set consul datacenter (fix 0 discovered targets) #240
@@ -99,6 +99,10 @@ spec:
|
|||||||
consul_sd_configs:
|
consul_sd_configs:
|
||||||
- server: consul.service.consul:443
|
- server: consul.service.consul:443
|
||||||
scheme: https
|
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:
|
tls_config:
|
||||||
ca_file: /etc/vmagent-tls/ca.crt
|
ca_file: /etc/vmagent-tls/ca.crt
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
|||||||
Reference in New Issue
Block a user