Skip to content

Service mesh & networking: Network & DNS

Service mesh & networking commands for network & dns (tags: #network #dns #http).

Index
3 items

Istio1

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

Consul1

Consul: Look up a service via Consul DNS

Safe

Healthy instances and ports as Consul DNS returns them.

dig @127.0.0.1 -p 8600 <service>.service.consul SRV
What each part does
  1. digDNS lookup tool
  2. @127.0.0.1ask the local Consul agent instead of the system resolver
  3. -p 8600Consul's DNS port
  4. <service>.service.consulname of a registered service; only healthy instances are returned
  5. SRVrecord type: returns the port as well as the host

Also known as: service discovery · consul dns

Envoy1

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

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