InfraCityOpen editor

Edge & ingress

Everything public enters here: names, shields, a balancer, then the ingress into the cluster.

Edge & ingress, drawn as an isometric city

The CityScript

This is all there is to it. Change it in the editor and the city redraws.

%% E · Edge & ingress
%% DNS names the door, the shield drops bad traffic, the balancer picks a node, the ingress picks a service.
city 48x32

district internet "The internet" 3,3..11,12
district edge "Edge" 15,3..31,14
district cluster "Cluster" 35,3..45,22

building dns tower in edge "DNS & TLS"
  floor dns.f "Names"
    room dns.zone config "DNS zone" port=53
    room dns.certs config "Certificates" secret=tls-private-key
building shield tower in edge "DDoS shield & WAF"
  floor shield.f "Shield"
    room shield.ddos proxy "DDoS scrubbing" port=443
    room shield.waf proxy "WAF rules" port=443
building lb depot in edge "Load balancer"
  floor lb.f "Balancer"
    room lb.l4 proxy "L4 balancer" port=443
    room lb.health worker "Health checks"
building ingress factory in cluster "Ingress controller"
  floor ingress.f "Ingress"
    room ingress.nginx proxy "nginx ingress" port=80,443
    room ingress.cert worker "cert-manager" secret=acme-account-key
building apps factory in cluster "Apps"
  floor apps.f "Services"
    room apps.web service "Web" port=3000
    room apps.api service "API" port=8080

gate users at 0,8 port=443 "Visitors"
link dns.zone -> shield.ddos "resolves to"
link shield.ddos -> shield.waf -> lb.l4 -> ingress.nginx "HTTPS" variant=emphasis
link ingress.nginx -> apps.web "HTTP"
link ingress.nginx -> apps.api "HTTP"
link ingress.cert -> dns.certs "ACME" variant=security
link lb.health -> ingress.nginx "health check" variant=dashed