nixos: Podman DNS on every container network
Some checks failed
nixos / nixos (push) Failing after 1m45s
Some checks failed
nixos / nixos (push) Failing after 1m45s
The NixOS Podman module opens DNS (aardvark-dns, port 53) on podman0 only. CI jobs and compose stacks run on networks of their own, whose bridges are podman1, podman2 and so on, so their containers could not resolve anything. The first CI run on the converted asxpio-services failed this way: nix could not reach cache.nixos.org. The rehearsal jobs had not downloaded anything, so it went unnoticed there. Open 53 on every podman* interface. Tried on the rehearsal host with a container on its own network. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
39ed5d17b7
commit
a80134f6ff
1 changed files with 7 additions and 1 deletions
|
|
@ -22,7 +22,13 @@
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.docker-client ];
|
environment.systemPackages = [ pkgs.docker-client ];
|
||||||
# Podman's DNS for container networks, on each bridge's gateway
|
# Podman's DNS for container networks, on each bridge's gateway. The
|
||||||
|
# NixOS module opens it on podman0 only; CI jobs and compose stacks get
|
||||||
|
# networks of their own (podman1, podman2, ...).
|
||||||
|
networking.firewall.interfaces."podman*" = {
|
||||||
|
allowedUDPPorts = [ 53 ];
|
||||||
|
allowedTCPPorts = [ 53 ];
|
||||||
|
};
|
||||||
asxpio.security.ports = [
|
asxpio.security.ports = [
|
||||||
"tcp/53/aardvark-dns"
|
"tcp/53/aardvark-dns"
|
||||||
"udp/53/aardvark-dns"
|
"udp/53/aardvark-dns"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue