Format repo
This commit is contained in:
parent
3169149045
commit
8160b9da0b
37 changed files with 643 additions and 392 deletions
|
@ -1,8 +1,12 @@
|
|||
{ config, lib, globals, dns, ... }:
|
||||
let
|
||||
kunisZone = dns.lib.toString "kun.is" (import ./kun.is.zone.nix globals dns);
|
||||
in
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
globals,
|
||||
dns,
|
||||
...
|
||||
}: let
|
||||
kunisZone = dns.lib.toString "kun.is" (import ./kun.is.zone.nix globals dns);
|
||||
in {
|
||||
options.bind9.enable = lib.mkEnableOption "bind9";
|
||||
|
||||
config = lib.mkIf config.bind9.enable {
|
||||
|
@ -54,7 +58,7 @@ in
|
|||
containers = {
|
||||
bind9-udp = {
|
||||
image = globals.images.bind9;
|
||||
envFrom = [{ configMapRef.name = "bind9-env"; }];
|
||||
envFrom = [{configMapRef.name = "bind9-env";}];
|
||||
|
||||
ports.dns-udp = {
|
||||
containerPort = 53;
|
||||
|
@ -77,7 +81,7 @@ in
|
|||
|
||||
bind9-tcp = {
|
||||
image = globals.images.bind9;
|
||||
envFrom = [{ configMapRef.name = "bind9-env"; }];
|
||||
envFrom = [{configMapRef.name = "bind9-env";}];
|
||||
|
||||
ports.dns-tcp = {
|
||||
containerPort = 53;
|
||||
|
@ -99,10 +103,12 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
volumes = [{
|
||||
name = "config";
|
||||
configMap.name = "bind9-config";
|
||||
}];
|
||||
volumes = [
|
||||
{
|
||||
name = "config";
|
||||
configMap.name = "bind9-config";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -117,7 +123,7 @@ in
|
|||
spec = {
|
||||
type = "LoadBalancer";
|
||||
selector.app = "bind9";
|
||||
ipFamilies = [ "IPv4" "IPv6" ];
|
||||
ipFamilies = ["IPv4" "IPv6"];
|
||||
ipFamilyPolicy = "RequireDualStack";
|
||||
|
||||
ports.dns = {
|
||||
|
@ -137,7 +143,7 @@ in
|
|||
spec = {
|
||||
type = "LoadBalancer";
|
||||
selector.app = "bind9";
|
||||
ipFamilies = [ "IPv4" "IPv6" ];
|
||||
ipFamilies = ["IPv4" "IPv6"];
|
||||
ipFamilyPolicy = "RequireDualStack";
|
||||
|
||||
ports.dns = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue