Skip to content

Commit

Permalink
make jobs bound ports only listen on internal network
Browse files Browse the repository at this point in the history
i.e. if you request a port in the nomad job spec it will listen on
10.83.0.X:Y instead of the public ip address

now we can actually have systems that are only reachable from other jobs
and not the whole internet
  • Loading branch information
foodelevator committed Dec 13, 2024
1 parent a1e495d commit 9e79c8e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions profiles/nomad/client.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
services.nomad = {
dropPrivileges = false;
enableDocker = true;
settings = {
client = {
enabled = true;
server_join.retry_join = config.dsekt.addresses.groups.cluster-servers;
};
settings.client = {
enabled = true;
server_join.retry_join = config.dsekt.addresses.groups.cluster-servers;
network_interface = "{{ GetPrivateInterfaces | include `address` `10[.]83[.]` | attr `name` }}";
};
};
}

0 comments on commit 9e79c8e

Please sign in to comment.