NetworkingLesson 8 of 8
- The pod network model, not reconciled
- Services, not reconciled
- EndpointSlices and kube-proxy, not reconciled
- Following a packet through the node, not reconciled
- Cluster DNS with CoreDNS, not reconciled
- Gateway API and the frozen Ingress API, not reconciled
- NetworkPolicies, not reconciled
- gRPC, service mesh and mTLS, not reconciled
gRPC, service mesh and mTLS
A Service balances connections, and gRPC sends every request down one. Fix that with client-side balancing or a layer 7 proxy, and know what a mesh adds before you adopt one.
Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.
Reconcile, in 7 scenes
The gRPC balancing problem
A ClusterIP Service balances connections, not requests. When a client opens a TCP connection to the Service address, kube-proxy’s rules on the client’s node pick one backend pod and translate the destination to that pod’s IP. Every packet on that connection then goes to the same pod. For HTTP/1.1 clients that open and close connections often, or keep a pool of them, this spreads load well enough.
gRPC runs over HTTP/2, and HTTP/2 multiplexingSending many concurrent requests as interleaved streams over a single TCP connection. changes the picture. A gRPC channel opens one connection and sends every call over it as a separate stream, for as long as the connection lives, which is often the life of the client process. kube-proxy made its choice once, when the connection opened, so a client sends all of its calls to one pod. With a few clients and many servers, some pods do all the work and the rest sit idle. Pods added by a scale-up or a rollout receive nothing from existing clients, because those clients never open another connection.
The symptom is uneven CPU across replicas of the same Deployment and a Horizontal Pod Autoscaler that adds pods without lowering latency. Nothing is broken at the Service level: the EndpointSlices list every pod, and connections opened later are spread evenly. The imbalance lives in how long connections last.
HTTP/2 removes head-of-line blocking at the HTTP layer, since a slow response no longer holds up others on the connection. It does not remove it at the TCP layer: one lost packet stalls every stream on the connection until it is retransmitted. HTTP/3 runs over QUIC, which gives each stream its own loss recovery and removes that.
Browsers speak HTTP/2 too, but they do not let JavaScript control HTTP/2 frames or read trailers, and gRPC carries its status in trailers. gRPC-Web exists for that gap: the browser speaks a variant of the protocol, and a proxy such as Envoy translates it to gRPC.
Fixes without a mesh
Client-side balancing over a headless Service. A headless ServiceA Service with clusterIP: None. kube-proxy ignores it, and cluster DNS answers its name with the addresses of its ready endpoints. gives the client the pod addresses instead of one virtual IP. A gRPC client configured with the round_robin policy resolves the name, opens a connection (a subchannel) to every address, and rotates calls across them.
apiVersion: v1
kind: Service
metadata:
name: greeter
spec:
selector:
app: greeter
ports:
- name: grpc
port: 50051
targetPort: grpc
appProtocol: kubernetes.io/h2c
---
apiVersion: v1
kind: Service
metadata:
name: greeter-headless
spec:
clusterIP: None
selector:
app: greeter
ports:
- name: grpc
port: 50051
targetPort: grpc
appProtocol: kubernetes.io/h2c
appProtocol: kubernetes.io/h2c tells proxies and load balancers that the port speaks HTTP/2 over cleartext, which is what an unencrypted gRPC port is. With three greeter replicas running, the two Services resolve differently:
kubectl get svc greeter greeter-headlessNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE greeter ClusterIP 10.99.70.249 <none> 50051/TCP 20s greeter-headless ClusterIP None <none> 50051/TCP 20skubectl exec client -- nslookup greeter.default.svc.cluster.localServer: 10.96.0.10 Address: 10.96.0.10:53 Name: greeter.default.svc.cluster.local Address: 10.99.70.249 kubectl exec client -- nslookup greeter-headless.default.svc.cluster.localServer: 10.96.0.10 Address: 10.96.0.10:53 Name: greeter-headless.default.svc.cluster.local Address: 10.244.1.2 Name: greeter-headless.default.svc.cluster.local Address: 10.244.3.3 Name: greeter-headless.default.svc.cluster.local Address: 10.244.2.3 kubectl get endpointslices -l kubernetes.io/service-name=greeter-headlessNAME ADDRESSTYPE PORTS ENDPOINTS AGE greeter-headless-ljl84 IPv4 50051 10.244.1.2,10.244.3.3,10.244.2.3 20s
In Go, the client side looks like this with grpc-go 1.x:
conn, err := grpc.NewClient(
"dns:///greeter-headless.default.svc.cluster.local:50051",
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultServiceConfig(`{"loadBalancingConfig": [{"round_robin":{}}]}`),
)
grpc.NewClient replaces grpc.Dial and grpc.DialContext, which are deprecated but still supported throughout 1.x, and it uses the dns resolver by default. grpc.WithInsecure() is deprecated in favour of insecure.NewCredentials(). For telemetry, pass grpc.WithStatsHandler(otelgrpc.NewClientHandler()) to the client and grpc.StatsHandler(otelgrpc.NewServerHandler()) to the server: the otelgrpc interceptors were removed in v0.61.0, and the archived go-grpc-prometheus package is replaced by go-grpc-middleware/providers/prometheus.
Client-side balancing needs every client to be configured correctly, in every language you use, and it puts discovery logic in application code. The alternative is to terminate HTTP/2 in a layer 7 proxy that balances each request. A Gateway with a GRPCRoute (gateway.networking.k8s.io/v1, Standard since Gateway API v1.1) does that for traffic entering the cluster. The ingress-nginx backend-protocol: GRPC annotation that many guides use belongs to a controller retired on 2026-03-24, which receives no further fixes.
Health checking is built in. The kubelet’s grpc probe handler was alpha in Kubernetes 1.23, beta and on by default in 1.24, and GA in 1.27. It calls the standard gRPC health checking service (grpc.health.v1.Health/Check) on the port you give, which must be a number: gRPC probes do not accept named ports. Probes connect over plaintext; a TLS mode is alpha in Kubernetes 1.37 and off by default.
apiVersion: apps/v1
kind: Deployment
metadata:
name: greeter
spec:
replicas: 3
selector:
matchLabels:
app: greeter
template:
metadata:
labels:
app: greeter
spec:
containers:
- name: greeter
image: registry.example.com/greeter:1.4
ports:
- name: grpc
containerPort: 50051
readinessProbe:
grpc:
port: 50051
periodSeconds: 5
kubectl --context kind-kx create deployment hello --image=nginx:1.30 --replicas=3 --port=80kubectl --context kind-kx expose deployment hello --port=80kubectl --context kind-kx expose deployment hello --name=hello-headless --cluster-ip=None --port=80kubectl --context kind-kx run client --image=busybox:1.37 --restart=Never -- sleep 3600kubectl --context kind-kx exec client -- nslookup hello.default.svc.cluster.localkubectl --context kind-kx exec client -- nslookup hello-headless.default.svc.cluster.localkubectl --context kind-kx scale deployment hello --replicas=5kubectl --context kind-kx exec client -- nslookup hello-headless.default.svc.cluster.local
For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The ClusterIP name returns one address; the headless name returns one address per ready pod, and two more after the scale-up. A client that resolved before the scale-up would not see them until it re-resolves. Delete the deployment, both Services and the client pod when you finish.
What a mesh adds
A service mesh moves networking features out of application code into proxies that sit on every request path, programmed by a central control plane. You get, without changing the application:
- Layer 7 routing and balancing. Each request, not each connection, is balanced, so the gRPC problem disappears for meshed clients. Traffic splits, header routing and fault injection come with it.
- Retries, timeouts and circuit breaking, applied consistently across languages.
- mTLS with workload identity. Every connection between meshed workloads is encrypted and authenticated, and policies can name callers by identity rather than IP.
- Telemetry. The proxies emit request metrics, access logs and trace spans for every hop.
Identity is the part that NetworkPolicy cannot give you. In Istio, a workload’s identity is its Kubernetes service account. When a pod starts, the istio-agent creates a private key and a certificate signing request, and istiod verifies the request and signs a certificate whose SPIFFE ID names the service account, such as spiffe://cluster.local/ns/shop/sa/api. The proxy receives the certificate over the Secret Discovery Service. Certificates have a default lifetime of 24 hours and rotate automatically before they expire. Both ends of a connection present certificates, so the server knows which workload called it.
A PeerAuthentication sets the mTLS mode: STRICT accepts only mTLS, PERMISSIVE (the default when none is set) accepts mTLS and plaintext, which allows a gradual rollout, and DISABLE turns it off. An AuthorizationPolicy then decides who may call what:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: orders-from-checkout
namespace: shop
spec:
selector:
matchLabels:
app: orders
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/shop/sa/checkout"]
to:
- operation:
paths: ["/orders.OrderService/*"]
Rules in the list are ORed: a request is allowed if any one rule matches. Writing from and to as two separate rules would allow any request from checkout, plus any request to the order service from anyone. Keep them in one rule, as above. For gRPC, match on paths, because a gRPC call is an HTTP/2 POST to /package.Service/Method; the methods field matches HTTP verbs, and every gRPC call is a POST. A RequestAuthentication validates JWTs that are present, but a request with no token still passes; require one with an AuthorizationPolicy that lists requestPrincipals.
Traffic routing works through VirtualService and DestinationRule in Istio’s own API. Named subsets such as v1 and v2 must be defined in a DestinationRule; a VirtualService that routes to an undefined subset gets 503s. Controlling egress through an egress gateway takes three objects: a Gateway for the egress proxy, a DestinationRule, and a VirtualService with two hops, one from the sidecar to the egress gateway and one from the gateway to the external host. The Istio APIs are v1 since Istio 1.22 (networking.istio.io/v1, security.istio.io/v1, telemetry.istio.io/v1); v1beta1 is still served.
Data planes
The data plane is the set of proxies that carry traffic; the control plane (istiod in Istio) watches the Kubernetes API and programs them. Istio offers two data plane modes.
In sidecar mode, every pod gets an Envoy proxy container, added by a mutating admission webhook when the pod is created in a namespace labelled istio-injection=enabled. Labelling a namespace does nothing to pods that already exist: injection happens at pod creation, so run kubectl rollout restart on existing Deployments. iptables rules in the pod redirect its traffic through the sidecar, which handles mTLS, routing and telemetry at layer 7 on both ends of every connection.
In ambient mode, GA since Istio 1.24 (November 2024), there is no proxy in the pod. A ztunnelIstio’s per-node layer 4 proxy in ambient mode. It carries pod traffic in mTLS tunnels (HBONE) and enforces layer 4 policy. DaemonSet runs on every node and handles mTLS, identity and layer 4 authorization for the pods on that node. Layer 7 features (HTTP routing, retries, path-based authorization) need a waypoint proxy, an Envoy Deployment you add for a namespace or service only where you need it. Pods join with the namespace label istio.io/dataplane-mode=ambient, without a restart.
| Sidecar | Ambient | |
|---|---|---|
| Proxy location | One Envoy per pod | One ztunnel per node, plus optional waypoints |
| Layer 7 features | Everywhere | Only behind a waypoint |
| Joining the mesh | Pod restart | Namespace label, no restart |
| Proxy upgrade | Restart every pod | Roll the ztunnel DaemonSet and waypoints |
| Failure blast radius | One pod | Every meshed pod on the node, for ztunnel |
Other designs exist. Cilium provides a sidecarless mesh built on eBPF with a per-node Envoy, and Linkerd uses its own lightweight sidecar proxy. Istio ambient means Cilium is not the only sidecarless option.
Envoy basics
Envoy, the proxy in Istio sidecars, waypoints and many Gateway implementations, has four core concepts:
- A listener binds an address and port and runs a chain of filters on each connection; the HTTP connection manager filter parses HTTP.
- A route configuration maps requests, by host, path and headers, to a cluster.
- A cluster is a group of upstream hosts with a balancing policy, health checking, circuit breakers and outlier detection.
- An endpoint is one upstream host, usually a pod IP and port.
The control plane sends this configuration over xDSEnvoy’s discovery APIs: LDS for listeners, RDS for routes, CDS for clusters, EDS for endpoints and SDS for secrets such as certificates., streamed over gRPC so changes apply without restarts. v3 is the only xDS API version. When a pod becomes Ready, istiod sees the EndpointSlice change and pushes the updated endpoints to every proxy that needs them.
Some Envoy defaults catch people out (Envoy 1.40.2 at verification). Circuit breakers default to 1024 maximum connections, 1024 pending requests and 1024 concurrent requests per cluster, with 3 concurrent retries. Outlier detection ejects a host after 5 consecutive 5xx responses by default, and ejects at most 10% of a cluster’s hosts at once; anything else is a tuning choice. The TCP keepalive setting under upstream_connection_options.tcp_keepalive is a socket option, not connection pooling.
When a request fails, the access log’s response flags say where:
| Flag | Meaning |
|---|---|
UH | No healthy upstream host in the cluster |
UF | Upstream connection failure |
UC | Upstream connection termination |
UO | Upstream overflow: a circuit breaker tripped |
URX | Retry limit or maximum connect attempts reached |
NR | No route configured for the request |
The admin interface (port 15000 in Istio proxies) shows live configuration at /config_dump and statistics at /stats. Every endpoint that changes state needs an HTTP POST: POST /logging?level=debug raises the log level, and a GET is refused. In Istio, istioctl proxy-config reads the same data without port-forwarding.
Mesh and Gateway API
Gateway API began with north-south traffic, but the GAMMAThe Gateway API workstream that defines how routes configure service mesh traffic. Its work has been in the Standard channel since Gateway API v1.1. initiative made it the routing API for meshes too. Instead of a Gateway, a route names a Service as its parent:
apiVersion: gateway.networking.k8s.io/v1
kind: GRPCRoute
metadata:
name: greeter-canary
namespace: shop
spec:
parentRefs:
- group: ""
kind: Service
name: greeter
port: 50051
rules:
- backendRefs:
- name: greeter-v1
port: 50051
weight: 90
- name: greeter-v2
port: 50051
weight: 10
The mesh applies this route to every request addressed to the greeter Service, whichever pod sends it. A route in the same namespace as its Service is a producer route and affects all clients. A route in another namespace is a consumer route and affects only clients in its own namespace, such as one team setting a shorter timeout for its own calls. Once any route is attached to a Service, requests that match none of its rules are rejected. Istio supports these routes in both data plane modes, and in ambient mode a waypoint must be in place for them to take effect.
At the edge, Istio intends Gateway API to be its default traffic API: create a Gateway with gatewayClassName: istio and Istio deploys and programs the gateway proxy for it. Istio’s own Gateway resource, which selects a gateway deployment with istio: ingressgateway, remains documented, but Istio recommends the Kubernetes Gateway API in its place.
Costs
A mesh is another distributed system to run. The Istio project publishes its own measurements, each tied to a version and mode. For Istio 1.24, at 1,000 HTTP requests per second with 1 KB payloads, a sidecar with 2 worker threads used about 0.20 vCPU and 60 MB of memory, a waypoint about 0.25 vCPU and 60 MB, and a ztunnel about 0.06 vCPU and 12 MB. For Istio 1.22.3 in sidecar mode with default telemetry, the client and server proxies together added about 0.182 ms at P90 and 0.248 ms at P99 over the baseline. Sidecar memory multiplies by pod count; ztunnel memory by node count. Quote any figure with its version and mode, and measure your own traffic.
The operational surface grows too:
- Upgrades. Istio supports each minor release until six weeks after the second minor release that follows it, and ships a minor release about once a quarter, so plan at least two upgrades a year and check that each release supports your Kubernetes minor version. Revision-based canary upgrades let you move namespaces to a second control plane revision one at a time.
- Installation. The in-cluster Istio operator was deprecated in 1.23 and removed in 1.24; an
IstioOperatorfile survives only as input toistioctl install -f. Install with istioctl, Helm (helm install istio-base istio/base -n istio-system --set defaultRevision=default --create-namespace, thenistiod) or the separate Sail Operator. The built-in profiles aredefault,demo,minimal,remote,ambient,emptyandpreview, plus platform profiles; there is noproductionprofile, anddemois not meant for production. - Tracing needs a backend. Istio’s Jaeger task points to the Jaeger documentation for installation, then defines an
opentelemetryextension provider and selects it with the Telemetry API; the default sampling rate is 1%. - Debugging. A failed request has more places to fail, and you need to read proxy configuration and response flags to find which one.
Adopt a mesh for a concrete need: mTLS between services for compliance, identity-based authorization, request-level traffic management, or uniform telemetry across languages. If the only problem is gRPC balancing, a headless Service with round robin and a MaxConnectionAge, or a GRPCRoute on a Gateway, solves it with far less to run.
Actual state
Check your understanding
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
Lesson not yet reconciled
Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met
- Explain why layer 4 Service balancing pins long-lived HTTP/2 connections to one pod. (not yet met)
- Balance gRPC with a headless Service and client-side round robin, or with a layer 7 proxy. (not yet met)
- Compare sidecar and ambient mesh data planes. (not yet met)
- Describe how a mesh issues workload identities and enforces mTLS. (not yet met)
Pass every check above to reconcile this lesson.
Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.
Changed since the notes
This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.
Show 41 corrections
The notes saidIstio CRDs use networking.istio.io/v1beta1, security.istio.io/v1beta1 and telemetry.istio.io/v1alpha1 (repeated in notes 84, 87 and 98)
CorrectedPromoted to v1 in Istio 1.22 (May 2024), including the Telemetry API. v1beta1 is still served. The current Istio release is 1.32.0 (2026-11-09).
The notes saidCilium's eBPF mesh is the newer sidecarless approach
CorrectedIstio ambient mode (ztunnel plus waypoints) has been sidecarless and GA since Istio 1.24 (November 2024), so Cilium is not the only sidecarless option.
The notes saidVPC Lattice is AWS's newer application networking service
CorrectedVPC Lattice has been GA since 2023. On EKS the AWS Gateway API Controller drives it for east-west traffic. The AWS Load Balancer Controller added GA Gateway API support for north-south traffic in March 2026.
The notes saidMesh overhead is typically 1-3 ms per hop
CorrectedIstio 1.18 sidecar benchmarks measured about 1.7 ms at P90. The Istio 1.22 docs report ambient ztunnel adding about 0.17 ms at P90 and 0.20 ms at P99. Quote any figure with its version and data-plane mode.
Sourceistio.io/v1.22/docs/ops/deployment/performance-and-scalability
The notes saidAuthorizationPolicy with separate '- from' and '- to' rules restricts both
CorrectedRules are ORed: a match occurs when at least one rule matches. Put from and to in the same rule.
Sourceistio.io/latest/docs/reference/config/security/authorization-policy
The notes saidA VirtualService can route to subsets v1/v2 without a DestinationRule
CorrectedSubsets must be defined in a DestinationRule. Routing to an undefined subset returns 503s.
Sourceistio.io/latest/docs/ops/common-problems/network-issues
The notes saidThe Istio Operator (IstioOperator CR in-cluster) manages installation
CorrectedThe in-cluster operator was deprecated in 1.23 and removed in 1.24. IstioOperator survives only as input to istioctl install -f. Use Helm or the separate Sail Operator.
Sourceistio.io/latest/blog/2024/in-cluster-operator-deprecation-announcement
The notes saidInstallation profiles: minimal, default, demo, production
CorrectedThe profiles are default, demo, minimal, remote, ambient, empty and preview, plus platform profiles. There is no production profile.
Sourceistio.io/latest/docs/setup/additional-setup/config-profiles
The notes saidGateway selector istio: ingressgateway for ingress
CorrectedStill documented, but Istio intends to make the Kubernetes Gateway API its default traffic-management API. Prefer a Gateway with gatewayClassName: istio.
Sourceistio.io/latest/docs/tasks/traffic-management/ingress/ingress-control
The notes saidservice.beta.kubernetes.io/aws-load-balancer-type: nlb
CorrectedThe legacy in-tree controller handles the nlb value. With the AWS Load Balancer Controller, use aws-load-balancer-type: external plus aws-load-balancer-nlb-target-type: ip or instance. EKS recommends creating new NLBs only with the Load Balancer Controller.
Sourcedocs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html
The notes saidIstio is sidecar-only (no mention of ambient); 1.29.x line
CorrectedAmbient has been GA since 1.24. Istio 1.32.0 was released 2026-11-09, and 1.29 reached EOL on 2026-10-12.
The notes saidInstall Jaeger with the samples/addons/jaeger.yaml addon
CorrectedThe Istio Jaeger task defers installation to the Jaeger docs. It configures an opentelemetry extensionProvider (jaeger-collector:4317) that the Telemetry API selects. Default sampling is 1%.
Sourceistio.io/latest/docs/tasks/observability/distributed-tracing/jaeger
The notes saidEnsure sufficient VPC IP addresses for sidecars
CorrectedSidecars share the pod's network namespace and IP, so they consume no extra VPC IPs.
Sourceistio.io/latest/docs/setup/additional-setup/sidecar-injection
The notes saidhelm install istio-base istio/base -n istio-system (no --create-namespace)
CorrectedThe command fails if the namespace does not exist. The documented command is helm install istio-base istio/base -n istio-system --set defaultRevision=default --create-namespace.
The notes saidLabelling a namespace injects sidecars
CorrectedInjection occurs at pod creation time. Existing pods need kubectl rollout restart.
Sourceistio.io/latest/docs/setup/additional-setup/sidecar-injection
The notes saidEnvoy config uses resource_api_version: V3
Correctedv3 is the only xDS version. Pin examples to a stated Envoy release; Envoy is at 1.40.2.
The notes saidCircuit breaker thresholds 100/100/1000/3 presented as defaults
CorrectedEnvoy's defaults are max_connections 1024, max_pending_requests 1024, max_requests 1024 and max_retries 3. Only max_retries matches.
Sourceenvoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/circuit_breaker.proto
The notes saidoutlier_detection max_ejection_percent: 50
CorrectedThe Envoy default is 10%, and consecutive_5xx defaults to 5. A value of 50 is a tuning choice, not a default.
Sourceenvoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/outlier_detection.proto
The notes said503 UC means no healthy upstream; UC and UF both mean upstream connection failure
CorrectedUH means no healthy upstream, UF means upstream connection failure, and UC means upstream connection termination. Also relevant: UO is upstream overflow (circuit breaker) and URX is the retry limit exceeded.
Sourceenvoyproxy.io/docs/envoy/v1.30.11/configuration/observability/access_log/usage
The notes saidChange log level with GET /logging?level=debug
CorrectedAll admin mutations must be HTTP POST, for example POST /logging?level=debug.
The notes saidtcp_keepalive presented as connection pooling
CorrectedIt is a socket option (upstream_connection_options.tcp_keepalive), not connection pooling.
Sourceenvoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/address.proto
The notes saidKubernetes 1.24+ supports native gRPC probes
CorrectedgRPC probes are beta and on by default in 1.24, and GA in 1.27.
Sourcekubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
The notes saidgrpc.Dial(…) with grpc.WithInsecure()
CorrectedDial and DialContext are deprecated in favour of NewClient (still supported throughout 1.x), and WithInsecure is deprecated. Use grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials())). NewClient defaults to the dns resolver.
The notes saidgrpc_prometheus and otelgrpc.UnaryServerInterceptor() interceptors
Correctedgo-grpc-prometheus is archived; use go-grpc-middleware/providers/prometheus. The otelgrpc interceptors were deprecated in v0.46.0 and removed in v0.61.0 (May 2025); use grpc.StatsHandler(otelgrpc.NewServerHandler()).
Sourcegithub.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md
The notes saidNGINX Ingress serves gRPC via backend-protocol: GRPC
Correctedingress-nginx was retired in March 2026 and receives no further releases or fixes. Use Gateway API GRPCRoute (gateway.networking.k8s.io/v1, GA since Gateway API v1.1).
Sourcekubernetes.io/blog/2025/11/11/ingress-nginx-retirement
The notes saidkubernetes.io/ingress.class: alb annotation
CorrectedDeprecated in favour of spec.ingressClassName: alb. The controller still accepts the annotation for backward compatibility.
Sourcekubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/ingress/ingress_class
The notes saidAuthorizationPolicy methods: ["orders.OrderService/*"]
Correctedmethods matches HTTP verbs, and for gRPC the method is always POST. Use paths: ["/orders.OrderService/*"].
Sourceistio.io/latest/docs/reference/config/security/authorization-policy
The notes saidBrowsers can't use HTTP/2 directly
CorrectedBrowsers speak HTTP/2 but do not expose frame and trailer control to JavaScript. That gap is why gRPC-Web exists.
The notes saidHTTP/2 has no head-of-line blocking
CorrectedHTTP/2 removes head-of-line blocking at the HTTP layer only. TCP-level blocking remains; HTTP/3 over QUIC removes it.
The notes saidALB gRPC example (missing HTTPS listener; target-type ip required)
CorrectedgRPC needs an HTTPS listener and backend-protocol-version: GRPC. target-type ip is not required: instance and ip are both supported, and instance mode needs a NodePort Service.
Sourcedocs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html
The notes saidDNS TTL governs endpoint updates for dns:/// targets
CorrectedClients re-resolve mainly on connection loss. Set the server's MaxConnectionAge (with a grace period) to force reconnects, or use a headless Service with round_robin, or a mesh.
Sourcegithub.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md
The notes saidIRSA as workload identity; IRSA gives per-pod credentials
CorrectedIRSA gives every pod of a service account the same role. Pod Identity is preferred, and its session tags (kubernetes-pod-name, kubernetes-pod-uid and others) identify the pod.
Sourcedocs.aws.amazon.com/eks/latest/userguide/pod-id-abac.html
The notes saidNetwork policies are enforced on EKS
CorrectedEnforcement requires enableNetworkPolicy in the VPC CNI. EKS also supports ClusterNetworkPolicy with Admin and Baseline tiers.
Sourcedocs.aws.amazon.com/eks/latest/userguide/cni-network-policy.html
The notes saidCilium monitoring mode for policies
CorrectedThe setting is policyAuditMode and is not meant for production. Upstream, ClusterNetworkPolicy v1alpha2 replaces AdminNetworkPolicy and BaselineAdminNetworkPolicy.
The notes saidIstio mTLS certificates rotate frequently
CorrectedThe default certificate TTL is 24h.
The notes saidWithout a default deny, a NetworkPolicy is ineffective
CorrectedSelecting a pod isolates it for the listed policyTypes.
Sourcekubernetes.io/docs/concepts/services-networking/network-policies
The notes saidpodSelector: {} allows traffic cluster-wide
CorrectedpodSelector: {} covers only the same namespace. Add namespaceSelector: {} for cluster-wide.
Sourcekubernetes.io/docs/concepts/services-networking/network-policies
The notes saidDNS egress allows UDP 53 only
CorrectedAlso allow TCP 53, and the NodeLocal DNSCache IP if you use it.
Sourcekubernetes.io/docs/concepts/services-networking/network-policies
The notes saidIstio egress gateway configuration
CorrectedAn egress gateway needs a Gateway, a DestinationRule and a two-hop VirtualService.
Sourceistio.io/latest/docs/tasks/traffic-management/egress/egress-gateway
The notes saidBehavioral analysis YAML presented as configuration
CorrectedIt is pseudo-code. No standard resource defines that kind, so the API server rejects it unless a matching CRD is installed.
Sourcekubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources
The notes saidRequestAuthentication alone enforces JWT
CorrectedRequests without a token pass. Enforce with an AuthorizationPolicy using requestPrincipals.
Sourceistio.io/latest/docs/reference/config/security/request_authentication
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- kubernetes.io/docs/concepts/services-networking/service
- kubernetes.io/blog/2018/11/07/grpc-load-balancing-on-kubernetes-without-tears
- kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
- github.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md
- pkg.go.dev/google.golang.org/grpc
- grpc.io/blog/state-of-grpc-web
- gateway-api.sigs.k8s.io/docs/mesh/mesh-overview
- istio.io/latest/docs/overview/dataplane-modes
- istio.io/latest/blog/2024/ambient-reaches-ga
- istio.io/latest/docs/concepts/security
- istio.io/latest/docs/reference/config/security/authorization-policy
- istio.io/latest/docs/reference/config/security/peer_authentication
- istio.io/latest/docs/ops/deployment/performance-and-scalability
- istio.io/v1.22/docs/ops/deployment/performance-and-scalability
- istio.io/latest/docs/releases/supported-releases
- istio.io/latest/news/releases/1.32.x/announcing-1.32
- istio.io/latest/docs/setup/additional-setup/sidecar-injection
- istio.io/latest/docs/tasks/traffic-management/ingress/gateway-api
- envoyproxy.io/docs/envoy/latest/api-docs/xds_protocol
- envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/circuit_breaker.proto
- envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/outlier_detection.proto
- envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage
- envoyproxy.io/docs/envoy/latest/operations/admin
- docs.aws.amazon.com/app-mesh/latest/userguide/what-is-app-mesh.html
- docs.aws.amazon.com/eks/latest/userguide/integration-vpc-lattice.html
- kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/gateway/gateway
- kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/ingress/annotations
gRPC, service mesh and mTLS
↓ ↑ step, 1 to 7 scene, Esc leave