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

@ -37,9 +37,12 @@ cluster of its own beyond that one main node, and it replicates no service.
the addresses in `deploy.k8s.nodeAddresses` only, which is empty by default
([Joining nodes](#joining-nodes)).
- **NetworkPolicy:** k3s's own controller (kube-router, iptables) enforces
NetworkPolicy objects; the node doesn't turn it off. A pod no policy selects
reaches whatever it can route to. [The manifests](manifests.md#pods) say which
pods have one.
NetworkPolicy objects; the node doesn't turn it off. The namespace has one
policy, `default-deny-ingress`, that selects every pod and admits nobody, so
the node's own addresses reach a pod, and so does whatever a policy of its
own admits. Other pods and the bridge's agents don't reach a port a pod opens
later until a policy names it. [The manifests](manifests.md#pods)
say which pods have a policy of their own.
- **Secret store:** the store gets a second listener and an auth mount for the
pods' ServiceAccount tokens, described under
[Logging in to the secret store](#logging-in-to-the-secret-store).