Watch
0
0
Fork
You've already forked hyperhive
0

k8s: deny ingress to every pod by default

This commit is contained in:
atlas 2026-11-27 15:10:15 +01:00 • committed by mara
commit 51ae57fb02

View file

@ -57,7 +57,8 @@ in
internal = true;
description = ''
What ./runtime.nix applies: each enabled service's
objects, the namespace object, and the CA ConfigMap's name
objects, the namespace's own objects (the namespace and its
default-deny ingress policy), and the CA ConfigMap's name
and host files.
'';
};
@ -72,7 +73,10 @@ in
userNamespaces
;
services = withoutContext rendered.services;
namespaceObject = withoutContext rendered.objects.namespace;
namespaceObjects = withoutContext [
rendered.objects.namespace
rendered.objects."default-deny-ingress/networkpolicy"
];
};
# The images those pods run, for a node to load: ./node.nix.