diff --git a/nix/kubernetes/keys/scope.nix b/nix/kubernetes/keys/scope.nix index 15d773f3..e21322e0 100644 --- a/nix/kubernetes/keys/scope.nix +++ b/nix/kubernetes/keys/scope.nix @@ -283,6 +283,46 @@ makeScope newScope ( "10.197.0.10" ]; }; + + servers = [ + { + zones = [ + { + zone = "."; + use_tcp = true; + } + ]; + port = 53; + plugins = [ + { name = "errors"; } + { + name = "health"; + configBlock = "lameduck 10s"; + } + { name = "ready"; } + { + name = "kubernetes"; + parameters = "cluster.local in-addr.arpa ip6.arpa"; + configBlock = "pods insecure\nfallthrough in-addr.arpa ip6.arpa\nttl 30"; + } + { + name = "prometheus"; + parameters = "0.0.0.0:9153"; + } + { + name = "forward"; + parameters = ". /etc/resolv.conf"; + } + { + name = "cache"; + parameters = 300; # default 30 + } + { name = "loop"; } + { name = "reload"; } + { name = "loadbalance"; } + ]; + } + ]; }; } ));