cluster/services/search: add dns records

This commit is contained in:
Max Headroom 2023-12-03 23:09:24 +01:00
parent b24f73bc4b
commit 7d7714db4c

View file

@ -1,4 +1,4 @@
{ depot, ... }: { config, depot, ... }:
{ {
services.search = { services.search = {
@ -10,4 +10,8 @@
address = "https://search.${depot.lib.meta.domain}/healthz"; address = "https://search.${depot.lib.meta.domain}/healthz";
module = "https2xx"; module = "https2xx";
}; };
dns.records.search.target = map
(node: depot.hours.${node}.interfaces.primary.addrPublic)
config.services.search.nodes.host;
} }