Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_k8s-cni-services-and-network-policy

Kubernetes CNI, Services and NetworkPolicy

15 COMPONENTS · 18 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![Kubernetes CNI, Services and NetworkPolicy — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_k8s-cni-services-and-network-policy/opengraph-image)](https://archos.sageideas.dev/d/dgm_k8s-cni-services-and-network-policy)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_k8s-cni-services-and-network-policy)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_k8s-cni-services-and-network-policy" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Kubernetes CNI, Services and NetworkPolicy — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web client")]
  eng_1[("Platform engineer")]
  pdp_2["Policy decision point (PDP)"]
  api_3[("API server")]
  fe_4["Frontend Pod"]
  secrets_5[("Secrets manager")]
  dns_6[("Cluster DNS")]
  proxy_7["Service proxy"]
  dp_8["Pod network dataplane"]
  other_9["Batch Pod"]
  tsdb_10[("Time-series database (TSDB)")]
  alerting_11[("Alerting")]
  be_a_12["Backend Pod"]
  be_b_13["Backend Pod"]
  capacity_14["Capacity Estimate"]
  client_0 -->|"1. Sends JWT · HTTPS"| fe_4
  fe_4 -->|"2. Looks up name · DNS"| dns_6
  dns_6 -->|"3. Returns IP · DNS"| fe_4
  fe_4 -->|"4. To Service · TCP"| proxy_7
  proxy_7 -->|"5. Picks Pod · TCP"| dp_8
  dp_8 -->|"6a. If allowed · TCP"| be_a_12
  dp_8 -->|"6b. If allowed · TCP"| be_b_13
  fe_4 -->|"Responds · HTTPS"| client_0
  eng_1 -->|"Applies JWT · HTTPS"| pdp_2
  pdp_2 -->|"RBAC ok · HTTPS"| api_3
  api_3 -->|"Streams policy · HTTPS"| dp_8
  api_3 -->|"Streams endpoints · HTTPS"| proxy_7
  fe_4 -->|"Fetches key · HTTPS"| secrets_5
  other_9 -->|"Dropped · TCP"| dp_8
  be_a_12 -->|"Reports ready · HTTPS"| api_3
  be_b_13 -->|"Reports ready · HTTPS"| api_3
  tsdb_10 -->|"Scrapes drops · HTTPS"| dp_8
  tsdb_10 -->|"Metrics · HTTP"| alerting_11

COMPONENT STACK (14)

  • Web clientSTATEFUL
    Calls the frontend over the internet
  • Platform engineerSTATEFUL
    Applies a NetworkPolicy
  • Policy decision point (PDP)STATELESS
    RBAC check on each policy write
  • API serverSTATEFUL
    Stores Services, endpoints and policies
  • Frontend PodSTATELESS
    Serves the client; calls backend by name
  • Secrets managerSTATEFUL
    Holds the frontend TLS key
  • Cluster DNSSTATEFUL
    Resolves a Service name to its cluster IP
  • Service proxySTATELESS
    Maps a cluster IP to a ready Pod IP
  • Pod network dataplaneSTATELESS
    Network plugin; enforces NetworkPolicy
  • Batch PodSTATELESS
    Same namespace; no allow rule
  • Time-series database (TSDB)STATEFUL
    Stores dropped-connection counts
  • AlertingSTATEFUL
    Pages on policy-drop spikes and failed scrapes
  • Backend PodSTATELESS
    Ready; policy allows frontend only
  • Backend PodSTATELESS
    Ready; policy allows frontend only

REQUEST & DATA FLOW (18)

  1. Web client → Frontend Pod (Sends JWT)[HTTPS]
  2. Frontend Pod → Cluster DNS (Looks up name)[DNS]
  3. Cluster DNS → Frontend Pod (Returns IP)[DNS]
  4. Frontend Pod → Service proxy (To Service)[TCP]
  5. Service proxy → Pod network dataplane (Picks Pod)[TCP]
  6. Pod network dataplane → Backend Pod (If allowed)[TCP]
  7. Pod network dataplane → Backend Pod (If allowed)[TCP]
  8. Frontend Pod → Web client (Responds)[HTTPS]
  9. Platform engineer → Policy decision point (PDP) (Applies JWT)[HTTPS]
  10. Policy decision point (PDP) → API server (RBAC ok)[HTTPS]
  11. API server → Pod network dataplane (Streams policy)[HTTPS]
  12. API server → Service proxy (Streams endpoints)[HTTPS]
  13. Frontend Pod → Secrets manager (Fetches key)[HTTPS]
  14. Batch Pod → Pod network dataplane (Dropped)[TCP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →