Network model
Network policy on Kestrel is scoped to tenants. Inbound traffic is denied by default; outbound traffic is not.
Default-deny ingress
Section titled “Default-deny ingress”Capsule replicates a NetworkPolicy named default-deny into every tenant namespace the moment it is created, so no namespace ever starts open. It selects every pod, denies all inbound traffic, and allows four sources:
- Same namespace: pods in the same namespace.
- Same tenant: pods in any namespace labelled
capsule.clastix.io/tenant: <tenant>. - Traefik: the
traefiknamespace, so your Ingresses work without a rule of your own. - Monitoring: the
monitoringnamespace, so Prometheus can scrape your pods.
All four rules cover all ports. Capsule manages this policy; don’t edit or delete it.
Egress
Section titled “Egress”- No platform policy touches egress, and Kestrel does not filter outbound traffic by destination. DNS, in-cluster services and external endpoints work without setup.
- Once any policy with
policyTypes: [Egress]selects a pod, that pod can send only what the selecting policies allow, and each such policy needs its own ports-only DNS rule. See NetworkPolicy in practice. - Outbound connections leave Arbutus from one NAT address shared by all tenants. It is not an ingress address. If a remote service needs to allowlist Kestrel, ask RCS; the allowlist then admits all of Kestrel, not only your tenant.
What is blocked and why
Section titled “What is blocked and why”Cross-tenant pod-to-pod traffic is blocked by default because a tenant is the boundary of trust on Kestrel: two tenants are two teams with no implicit sharing. To accept traffic from another tenant, the destination tenant adds its own ingress policy; see NetworkPolicy in practice.
Capsule rejects these at admission, before any object or packet exists:
LoadBalancer,NodePortandExternalNameServices. See Service types.- Ingresses with a wildcard host (
Wildcard denied for tenant <tenant>). See Ingress on Kestrel.
If the manifest is rejected, the cause is Capsule admission. If the object exists but packets don’t arrive, the cause is NetworkPolicy.