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
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue