Skip to content

Service mesh & networking: Istio

Istio commands from the Service mesh & networking folder.

Index
4 items

Istio: Check proxy sync status

Safe

Whether every sidecar is in sync with istiod (SYNCED vs STALE).

istioctl proxy-status
What each part does
  1. istioctl proxy-statusevery sidecar and whether its config (CDS, LDS, EDS, RDS) is SYNCED or STALE with istiod

Also known as: STALE · proxy-status · envoy sync

Istio: Analyze a namespace for config problems

Safe

Finds broken VirtualServices, missing gateways, sidecar injection issues.

istioctl analyze -n <namespace>
What each part does
  1. istioctl analyzecheck Istio config for errors: missing gateways, bad hosts, conflicting rules
  2. -n <namespace>namespace to analyze; -A for all

Also known as: istio analyze · virtualservice

Istio: Show Envoy routes for a pod

Safe

The routes the sidecar actually received. Use clusters/listeners/endpoints for other views.

istioctl proxy-config routes <pod>.<namespace>
What each part does
  1. istioctl proxy-config routesshow the HTTP routes the pod's Envoy sidecar has
  2. <pod>.<namespace>the pod, written as name.namespace

Also known as: 404 NR · no healthy upstream · proxy-config

Istio: Enable sidecar injection for a namespace

Safe

New pods get an Envoy sidecar. Restart existing deployments to inject them.

kubectl label namespace <namespace> istio-injection=enabled --overwrite
What each part does
  1. kubectl label namespace <namespace>set a label on the namespace
  2. istio-injection=enabledtells Istio to inject the sidecar into new pods here (restart existing ones)
  3. --overwritereplace the label if it already has a value

Also known as: sidecar injection · istio-injection

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…