Skip to main content

Domain Templates

Domain templates define reusable Gateway settings that domains can inherit, ensuring consistent configuration across your API infrastructure.

Template Properties

PropertyDescriptionOptions
Exposure TypeNetwork accessibilitypublic (internet-facing), internal (cluster-only)
PortListener port numberAny valid port (typically 80, 443, 8080)
TLS PolicyCertificate handlingterminate, passthrough, none
AnnotationsCustom metadataKey-value pairs for load balancer configuration

How Templates Work

┌──────────────────┐
│ Domain Template │
│ ─────────────── │
│ exposure: public│
│ port: 443 │
│ tls: terminate │
└────────┬─────────┘
│ inherits
┌────┴────┐
▼ ▼
┌────────┐ ┌────────┐
│Domain A│ │Domain B│
│api.com │ │app.com │
└────────┘ └────────┘

Common Template Patterns

Template NameUse Case
Public HTTPSInternet APIs with TLS termination
Internal HTTPCluster-internal services
Public PassthroughmTLS or custom certificate handling

Benefits

  • Consistency: All domains using a template share the same baseline configuration
  • Efficiency: Update the template to change all associated domains
  • Compliance: Enforce organizational standards through template policies

Templates reduce configuration drift and simplify domain management at scale.