cluster/services/dns: register with consul
This commit is contained in:
parent
7aab09157e
commit
3be1bc9336
1 changed files with 13 additions and 0 deletions
|
@ -61,4 +61,17 @@ in {
|
|||
systemd.services.coredns = {
|
||||
after = [ "pdns.service" ];
|
||||
};
|
||||
|
||||
consul.services.pdns = {
|
||||
mode = "external";
|
||||
definition.service = {
|
||||
name = "authoritative-dns-backend";
|
||||
address = config.links.localAuthoritativeDNS.ipv4;
|
||||
port = config.links.localAuthoritativeDNS.port;
|
||||
checks = lib.singleton {
|
||||
interval = "60s";
|
||||
tcp = config.links.localAuthoritativeDNS.tuple;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue