Skip to content

Service mesh & networking: Envoy

Envoy commands from the Service mesh & networking folder.

Index
3 items

Envoy: Dump the running config

Safe

Full listeners/clusters/routes config from the admin API (Istio sidecars: port 15000).

curl -s localhost:<admin-port>/config_dump > envoy-config.json
What each part does
  1. curl -s localhost:<admin-port>/config_dumpthe full config Envoy is running now: listeners, routes, clusters, secrets (redacted)
  2. > envoy-config.jsonsave it to a file (it's large)

Also known as: config_dump · envoy admin

Envoy: Check upstream cluster health

Safe

Shows which upstream hosts are failing health checks or ejected.

curl -s localhost:<admin-port>/clusters | grep -E 'health_flags|cx_active'
What each part does
  1. curl -s localhost:<admin-port>/clustersEnvoy admin API: stats for every upstream host (admin port is often 15000 or 9901)
  2. | grep -Ekeep only lines matching the regex
  3. 'health_flags|cx_active'health flags (healthy or /failed_active_hc etc.) and active connections

Also known as: no healthy upstream · 503 UH · outlier detection

Envoy: Raise the log level at runtime

Caution

Turn on debug logs without a restart. Set it back to info afterwards.

curl -X POST "localhost:<admin-port>/logging?level=debug"
What each part does
  1. curl -X POSTadmin API changes need POST
  2. localhost:<admin-port>/loggingthe logging endpoint
  3. ?level=debugset every logger to debug; set it back to info when done, or use ?<logger>=debug for one

Also known as: envoy debug logs

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/…