Menu

Kubernetes Gateway API + Traefik + cert-manager
πŸ“°

Kubernetes Gateway API + Traefik + cert-manager

DEV Community: kubernetesΒ·Omar AhmedΒ·9 days ago
#87pbE4RS
#devtokubernetes#devto#dev#traefik#gateway
Long article (3189 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A complete example using Gateway API, Traefik as the gateway controller, NGINX as the backend application, and Let's Encrypt for HTTPS.

1. Architecture

flowchart TD Client --> LB["Network LoadBalancer: 80 / 443"] LB --> TS["Traefik LoadBalancer Service"] TS -->|"80 β†’ 8000 / 443 β†’ 8443"| Gateway["Traefik Gateway"] Gateway --> Route["HTTPRoute"] Route --> Service["NGINX ClusterIP Service: 80"] Service --> Pod1["NGINX Pod 1: 80"] Service --> Pod2["NGINX Pod 2: 80"] CM["cert-manager"] --> LE["Let's Encrypt"] CM --> Secret["TLS Secret"] Secret -.-> Gateway

Component Responsibility

GatewayClass Selects the Gateway controller

Gateway Defines HTTP and HTTPS listeners

HTTPRoute Routes requests to backend services

Traefik Reverse proxy and TLS termination

cert-manager Certificate issuance and renewal

Let's Encrypt Trusted certificate authority

NGINX Backend application

LoadBalancer Public entry point

2. Prerequisites

Running Kubernetes cluster, kubectl , and Helm.

Public domain and DNS access.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.