About gateway injection
Gateway injection utilizes the same mechanism as sidecar injection to deploy the Envoy proxy into gateway pods. To deploy a gateway:
- Create a Kubernetes
Deploymentand a correspondingServicein a namespace visible to the Istio control plane. - Annotate and label the deployment so the Istio control plane injects an Envoy proxy configured as a gateway.
- Apply Istio's
GatewayandVirtualServiceresources to control ingress or egress traffic.