# openshift-service-mesh/istio architecture

> Architecture diagram of the GitHub repository openshift-service-mesh/istio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openshift-service-mesh/istio
- Repository: https://github.com/openshift-service-mesh/istio

## Overview

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: [`pilot/pkg/bootstrap/server.go`](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/bootstrap/server.go) (Istiod bootstrap), [`pkg/kube/client.go`](https://github.com/openshift-service-mesh/istio/blob/master/pkg/kube/client.go) (Kubernetes client), [`pkg/xds/server.go`](https://github.com/openshift-service-mesh/istio/blob/master/pkg/xds/server.go) (xDS discovery), [`pilot/pkg/serviceregistry/kube/controller/controller.go`](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/serviceregistry/kube/controller/controller.go) (Service registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Istiod control plane"]
  node_istiod["Istiod bootstrap<br/>[server.go]"]
  node_kubeclient["Kubernetes client<br/>[client.go]"]
  node_registry["Service registry<br/>[controller.go]"]
  node_serviceentry["ServiceEntry discovery<br/>[controller.go]"]
  node_virtualservices["VirtualService processing"]
  node_xds["xDS discovery<br/>[server.go]"]
end

subgraph group_dataplane["Workload data plane"]
  node_envoy["Envoy proxy"]
  node_ztunnel["ztunnel"]
  node_agent["Node agent<br/>[main.go]"]
  node_status["Agent status<br/>[server.go]"]
  node_cni["CNI plugin<br/>[plugin.go]"]
  node_repair["CNI repair"]
end

subgraph group_operations["Mesh operations"]
  node_analysis["Configuration analysis<br/>[controller.go]"]
  node_istioctl["istioctl<br/>[root.go]"]
  node_operatorcli["Install and upgrade<br/>[install.go]"]
end

subgraph group_security["Security"]
  node_certcontroller["Certificate management<br/>[certcontroller.go]"]
  node_validation["Admission validation<br/>[server.go]"]
  node_validationctl["Webhook controller<br/>[controller.go]"]
end

node_operator(("Mesh operator"))
node_kubernetes[("Kubernetes cluster")]

node_operator -->|"configures mesh"| node_kubernetes
node_operatorcli -->|"installs components"| node_kubernetes
node_kubeclient -->|"reads cluster state"| node_kubernetes
node_istiod -->|"uses client"| node_kubeclient
node_registry -.->|"watches resources"| node_kubeclient
node_serviceentry -->|"requests updates"| node_xds
node_virtualservices -->|"requests updates"| node_xds
node_xds -->|"sends discovery"| node_envoy
node_istiod -->|"configures proxies"| node_envoy
node_istiod -->|"configures ambient"| node_ztunnel
node_certcontroller -->|"generates cluster certs"| node_kubernetes
node_agent -.->|"starts agent services"| node_status
node_cni -.->|"integrates pod networking"| node_kubernetes
node_repair -->|"watches and repairs pods"| node_kubernetes
node_validationctl -->|"patches webhooks"| node_kubernetes
node_kubernetes -.->|"sends admission requests"| node_validation
node_istioctl -->|"analyzes mesh"| node_kubernetes
node_analysis -->|"analyzes configuration"| node_kubernetes

click node_istiod "https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/bootstrap/server.go"
click node_kubeclient "https://github.com/openshift-service-mesh/istio/blob/master/pkg/kube/client.go"
click node_registry "https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/serviceregistry/kube/controller/controller.go"
click node_serviceentry "https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/serviceregistry/serviceentry/controller.go"
click node_virtualservices "https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/model/virtualservice_controller.go"
click node_xds "https://github.com/openshift-service-mesh/istio/blob/master/pkg/xds/server.go"
click node_certcontroller "https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/bootstrap/certcontroller.go"
click node_agent "https://github.com/openshift-service-mesh/istio/blob/master/pilot/cmd/pilot-agent/main.go"
click node_status "https://github.com/openshift-service-mesh/istio/blob/master/pilot/cmd/pilot-agent/status/server.go"
click node_cni "https://github.com/openshift-service-mesh/istio/blob/master/cni/pkg/plugin/plugin.go"
click node_repair "https://github.com/openshift-service-mesh/istio/blob/master/cni/pkg/repair/repaircontroller.go"
click node_validation "https://github.com/openshift-service-mesh/istio/blob/master/pkg/webhooks/validation/server/server.go"
click node_validationctl "https://github.com/openshift-service-mesh/istio/blob/master/pkg/webhooks/validation/controller/controller.go"
click node_analysis "https://github.com/openshift-service-mesh/istio/blob/master/pkg/config/analysis/incluster/controller.go"
click node_istioctl "https://github.com/openshift-service-mesh/istio/blob/master/istioctl/pkg/root/root.go"
click node_operatorcli "https://github.com/openshift-service-mesh/istio/blob/master/operator/cmd/mesh/install.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_istiod,node_kubeclient,node_registry,node_serviceentry,node_virtualservices,node_xds toneBlue
class node_envoy,node_ztunnel,node_agent,node_status,node_cni,node_repair,node_kubernetes toneAmber
class node_analysis,node_istioctl,node_operatorcli toneMint
class node_certcontroller,node_validation,node_validationctl toneRose
class node_operator toneIndigo
```

## Components

### Istiod control plane

- [Istiod bootstrap](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/bootstrap/server.go): `pilot/pkg/bootstrap/server.go`
- [Kubernetes client](https://github.com/openshift-service-mesh/istio/blob/master/pkg/kube/client.go): `pkg/kube/client.go`
- [Service registry](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/serviceregistry/kube/controller/controller.go): `pilot/pkg/serviceregistry/kube/controller/controller.go`
- [ServiceEntry discovery](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/serviceregistry/serviceentry/controller.go): `pilot/pkg/serviceregistry/serviceentry/controller.go`
- [VirtualService processing](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/model/virtualservice_controller.go): `pilot/pkg/model/virtualservice_controller.go`
- [xDS discovery](https://github.com/openshift-service-mesh/istio/blob/master/pkg/xds/server.go): `pkg/xds/server.go`

### Workload data plane

- **Envoy proxy**
- **ztunnel**
- [Node agent](https://github.com/openshift-service-mesh/istio/blob/master/pilot/cmd/pilot-agent/main.go): `pilot/cmd/pilot-agent/main.go`
- [Agent status](https://github.com/openshift-service-mesh/istio/blob/master/pilot/cmd/pilot-agent/status/server.go): `pilot/cmd/pilot-agent/status/server.go`
- [CNI plugin](https://github.com/openshift-service-mesh/istio/blob/master/cni/pkg/plugin/plugin.go): `cni/pkg/plugin/plugin.go`
- [CNI repair](https://github.com/openshift-service-mesh/istio/blob/master/cni/pkg/repair/repaircontroller.go): `cni/pkg/repair/repaircontroller.go`

### Mesh operations

- [Configuration analysis](https://github.com/openshift-service-mesh/istio/blob/master/pkg/config/analysis/incluster/controller.go): `pkg/config/analysis/incluster/controller.go`
- [istioctl](https://github.com/openshift-service-mesh/istio/blob/master/istioctl/pkg/root/root.go): `istioctl/pkg/root/root.go`
- [Install and upgrade](https://github.com/openshift-service-mesh/istio/blob/master/operator/cmd/mesh/install.go): `operator/cmd/mesh/install.go`

### Security

- [Certificate management](https://github.com/openshift-service-mesh/istio/blob/master/pilot/pkg/bootstrap/certcontroller.go): `pilot/pkg/bootstrap/certcontroller.go`
- [Admission validation](https://github.com/openshift-service-mesh/istio/blob/master/pkg/webhooks/validation/server/server.go): `pkg/webhooks/validation/server/server.go`
- [Webhook controller](https://github.com/openshift-service-mesh/istio/blob/master/pkg/webhooks/validation/controller/controller.go): `pkg/webhooks/validation/controller/controller.go`

### Other components

- **Mesh operator**
- **Kubernetes cluster**

## Connections

- Mesh operator → Kubernetes cluster: configures mesh (evidence: `README.md`)
- Install and upgrade → Kubernetes cluster: installs components (evidence: `README.md`)
- Kubernetes client → Kubernetes cluster: reads cluster state (evidence: `pkg/kube/client.go`)
- Istiod bootstrap → Kubernetes client: uses client
- Service registry → Kubernetes client: watches resources
- ServiceEntry discovery → xDS discovery: requests updates (evidence: `pilot/pkg/serviceregistry/serviceentry/controller.go`)
- VirtualService processing → xDS discovery: requests updates (evidence: `pilot/pkg/model/virtualservice_controller.go`)
- xDS discovery → Envoy proxy: sends discovery (evidence: `pkg/xds/server.go`)
- Istiod bootstrap → Envoy proxy: configures proxies (evidence: `README.md`)
- Istiod bootstrap → ztunnel: configures ambient (evidence: `README.md`)
- Certificate management → Kubernetes cluster: generates cluster certs (evidence: `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 (evidence: `cni/pkg/repair/repaircontroller.go`)
- Webhook controller → Kubernetes cluster: patches webhooks (evidence: `pkg/webhooks/validation/controller/controller.go`)
- Kubernetes cluster → Admission validation: sends admission requests
- istioctl → Kubernetes cluster: analyzes mesh (evidence: `README.md`)
- Configuration analysis → Kubernetes cluster: analyzes configuration (evidence: `pkg/config/analysis/incluster/controller.go`)
