k8s: deny ingress to every pod by default
This commit is contained in:
parent
c09ef6c358
commit
51ae57fb02
1 changed files with 241 additions and 27 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue