How openshift-service-mesh/istio works
Istio is a service mesh: users configure workloads and traffic policies in Kubernetes, Istiod observes cluster and mesh configuration, builds proxy-specific discovery state, and sends it to Envoy; Ambient mode also uses ztunnel. The graph includes that control-plane workflow plus documented installation, CLI analysis, CNI networking, and certificate-management capabilities. Relationships not demonstrated by the excerpts are limited to explicit README-level descriptions; unsampled subsystem internals are represented at their supported directory paths.
Main entry points: bootstrap/server.go Istiod bootstrap · client.go Kubernetes client · xds/server.go xDS discovery · controller.go Service registry
Components 20
Istiod control plane
- Istiod bootstrap
pilot/pkg/bootstrap/server.go - Kubernetes client
pkg/kube/client.go - Service registry
pilot/pkg/serviceregistry/kube/controller/controller.go - ServiceEntry discovery
pilot/pkg/serviceregistry/serviceentry/controller.go - VirtualService processing
pilot/pkg/model/virtualservice_controller.go - xDS discovery
pkg/xds/server.go
Workload data plane
- Envoy proxy
- ztunnel
- Node agent
pilot/cmd/pilot-agent/main.go - Agent status
pilot/cmd/pilot-agent/status/server.go - CNI plugin
cni/pkg/plugin/plugin.go - CNI repair
cni/pkg/repair/repaircontroller.go
Mesh operations
- Configuration analysis
pkg/config/analysis/incluster/controller.go - istioctl
istioctl/pkg/root/root.go - Install and upgrade
operator/cmd/mesh/install.go
Security
- Certificate management
pilot/pkg/bootstrap/certcontroller.go - Admission validation
pkg/webhooks/validation/server/server.go - Webhook controller
pkg/webhooks/validation/controller/controller.go
Other components
- Mesh operator
- Kubernetes cluster
Connections 18
- Mesh operator → Kubernetes cluster: configures mesh
README.md - Install and upgrade → Kubernetes cluster: installs components
README.md - Kubernetes client → Kubernetes cluster: reads cluster state
pkg/kube/client.go - Istiod bootstrap → Kubernetes client: uses client
- Service registry → Kubernetes client: watches resources
- ServiceEntry discovery → xDS discovery: requests updates
pilot/pkg/serviceregistry/serviceentry/controller.go - VirtualService processing → xDS discovery: requests updates
pilot/pkg/model/virtualservice_controller.go - xDS discovery → Envoy proxy: sends discovery
pkg/xds/server.go - Istiod bootstrap → Envoy proxy: configures proxies
README.md - Istiod bootstrap → ztunnel: configures ambient
README.md - Certificate management → Kubernetes cluster: generates cluster certs
pilot/pkg/bootstrap/certcontroller.go - Node agent → Agent status: starts agent services
- CNI plugin → Kubernetes cluster: integrates pod networking
- CNI repair → Kubernetes cluster: watches and repairs pods
cni/pkg/repair/repaircontroller.go - Webhook controller → Kubernetes cluster: patches webhooks
pkg/webhooks/validation/controller/controller.go - Kubernetes cluster → Admission validation: sends admission requests
- istioctl → Kubernetes cluster: analyzes mesh
README.md - Configuration analysis → Kubernetes cluster: analyzes configuration
pkg/config/analysis/incluster/controller.go