Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 2.21 KB

File metadata and controls

66 lines (53 loc) · 2.21 KB

Gateway API Configuration

This directory contains Gateway API resources that provide modern ingress capabilities with integrated DNS management and automatic TLS certificate provisioning.

Components

Gateway Configuration

TLS Certificate Management

Features

Automatic DNS Management

External DNS automatically creates and manages DNS records in Cloudflare based on Gateway and HTTPRoute resources, eliminating manual DNS configuration.

TLS Certificate Automation

Cert-manager with Let's Encrypt provides:

  • Automatic certificate provisioning for new domains
  • DNS-01 challenge support for wildcard certificates
  • Automatic certificate renewal
  • Integration with Gateway API TLS configuration

Modern Routing

Gateway API provides:

  • Advanced traffic routing capabilities
  • Built-in load balancing
  • Header-based routing
  • Request/response transformation
  • Traffic splitting for canary deployments

Configuration

The Gateway is configured to:

  • Listen on ports 80 (HTTP) and 443 (HTTPS)
  • Automatically redirect HTTP to HTTPS
  • Support multiple hostnames with individual TLS certificates
  • Integrate with MetalLB for LoadBalancer service type

Usage

Applications can expose services through Gateway API by creating HTTPRoute resources that reference the main Gateway. The system automatically handles:

  • DNS record creation in Cloudflare
  • TLS certificate provisioning
  • Traffic routing to backend services

Example HTTPRoute:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: my-app
spec:
  parentRefs:
  - name: main-gateway
  hostnames:
  - "myapp.example.com"
  rules:
  - backendRefs:
    - name: my-app-service
      port: 80