Add TODO for using nomad api socket

This commit is contained in:
IamTheFij 2023-03-27 15:50:15 -07:00
parent 28564b6130
commit 485bc22e78
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,8 @@ scrape_configs:
format:
- "prometheus"
nomad_sd_configs:
# TODO: Use NOMAD_SECRETS_DIR/api.sock and workload idenity when
# workload acls can be set using terraform
- server: "http://{{env "attr.unique.network.ip-address"}}:4646"
relabel_configs:
- source_labels: [__meta_nomad_service]

View File

@ -148,6 +148,8 @@ module "diun" {
DIUN_PROVIDERS_NOMAD_WATCHBYDEFAULT = true
# Nomad API
# TODO: Use socket in $NOMAD_SECRETS_DIR/api.sock when we can assign workload ACLs with Terraform to
# allow read access. Will need to update template to allow passing token by env
NOMAD_ADDR = "http://$${attr.unique.network.ip-address}:4646/"
DIUN_PROVIDERS_NOMAD = true
}