Traditional Kubernetes Ingress objects conflate two very different operational concerns: cluster edge infrastructure (load balancers, TLS certificates, VPC security boundaries, rate limits) and application traffic routing (canary weights, path rewrites, header matching, timeouts).
When both live inside a single annotation-heavy Ingress manifest, every minor routing tweak becomes either a risky self-service edit to shared edge configuration or a ticket in the platform team’s queue.
Why Classic Ingress Breaks Down Across Customer & ML Segments
In an architecture running both low-latency customer-facing APIs and heavy machine learning inference services, traffic policies diverge fast:
- Blast radius: A misconfigured regex or timeout annotation on a shared Ingress controller can degrade unrelated customer endpoints.
- Mesh boundary friction: Customer-facing services and internal ML model pipelines often require strict mTLS isolation, different retry budgets, and separate authorization policies.
- Zero native traffic splitting: Canary rollouts via Ingress require vendor-specific annotations that differ between NGINX, Envoy, and cloud load balancers.
Defining the Platform / Application Contract
With Kubernetes Gateway API backed by Istio, the cluster edge and east-west service mesh share one cohesive, role-oriented API.
1. Platform-Owned Gateway
The platform team declares a Gateway in a locked-down platform-ingress namespace. Listeners explicitly restrict which namespaces and route kinds may attach:
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: edge-gateway
namespace: platform-ingress
spec:
gatewayClassName: istio
listeners:
- name: https-api
hostname: "*.api.example.com"
port: 443
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- name: wildcard-api-tls
kind: Secret
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
ingress-access: public-edge
kinds:
- group: gateway.networking.k8s.io
kind: HTTPRoute
2. Developer-Owned HTTPRoute
Application teams attach routes from their own namespace without touching TLS secrets, cloud load balancer annotations, or global controller configs:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: inference-router
namespace: ml-serving
spec:
parentRefs:
- name: edge-gateway
namespace: platform-ingress
sectionName: https-api
hostnames:
- "infer.api.example.com"
rules:
- matches:
- headers:
- name: x-canary-cohort
value: "internal"
backendRefs:
- name: model-gateway-v2
port: 8080
- backendRefs:
- name: model-gateway-v1
port: 8080
weight: 90
- name: model-gateway-v2
port: 8080
weight: 10
Isolating Customer-Facing and ML Segments with Istio
Once north-south traffic enters through the Istio-managed Gateway, east-west traffic between customer APIs and ML inference pools is governed by strict mTLS (PeerAuthentication in STRICT mode) and explicit AuthorizationPolicy rules:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: ml-serving-allow-api
namespace: ml-serving
spec:
selector:
matchLabels:
app: model-gateway
action: ALLOW
rules:
- from:
- source:
principals:
- "cluster.local/ns/customer-api/sa/orchestrator"
to:
- operation:
methods: ["POST"]
paths: ["/v1/infer"]
Combining Gateway API at the edge with Istio inside the cluster ensures:
- Zero-trust segment isolation: Compromising a non-privileged pod does not grant lateral access to ML inference endpoints.
- Independent rollout velocity: Product engineers can ship weighted canaries and header-based dark launches via
HTTPRoutePRs with policy checks in CI.
Zero-Downtime Migration Checklist
When moving production traffic off legacy Ingress controllers onto Gateway API:
- Stand up the Istio
Gatewayin parallel with its own temporary DNS record and synthetic health probe. - Translate Ingress manifests into
HTTPRouteobjects and validate header/path parity with automated smoke tests before shifting live traffic. - Shift traffic via weighted DNS (
1% -> 10% -> 50% -> 100%) while comparing p95/p99 latency, 5xx rates, and mTLS telemetry. - Keep the legacy controller warm for 48 hours before decommissioning load balancers and reclaiming static IPs.