Kubernetes

Istio CLI

Istio CLI commands for service mesh management.

28 commands
Windows MacOS Linux
#service-mesh #networking

Installation

Install Istio with the demo profile
istioctl install --set profile=demo
Install with minimal components
istioctl install --set profile=minimal
Install with a custom operator config
istioctl install -f custom-operator.yaml
Verify Istio installation is correct
istioctl verify-install
Completely remove Istio from the cluster
istioctl uninstall --purge
Upgrade Istio to the latest version
istioctl upgrade

Traffic Management

Show route configuration for a workload
istioctl proxy-config routes deploy/myapp
Show cluster configuration for a workload
istioctl proxy-config clusters deploy/myapp
istioctl proxy-config endpoints deploy/myapp # Show endpoint configuration
istioctl proxy-config listeners deploy/myapp # Show listener configuration
istioctl proxy-config bootstrap deploy/myapp # Show bootstrap configuration

Proxy Management

Show synchronization status of all proxies
istioctl proxy-status
Set proxy log level to debug
istioctl proxy-config log deploy/myapp --level debug
Manually inject sidecar into a deployment
istioctl kube-inject -f deploy.yaml
Inject and apply in one step
istioctl kube-inject -f deploy.yaml | kubectl apply -f -

Analysis

Analyze the mesh for potential issues
istioctl analyze
Analyze a specific namespace
istioctl analyze --namespace default
Analyze all namespaces
istioctl analyze -A
Generate a bug report for troubleshooting
istioctl bug-report
istioctl validate -f virtual-service.yaml # Validate Istio resource configuration

Dashboard

Open Kiali service mesh dashboard
istioctl dashboard kiali
Open Grafana metrics dashboard
istioctl dashboard grafana
Open Jaeger distributed tracing
istioctl dashboard jaeger
Open Prometheus metrics dashboard
istioctl dashboard prometheus
Open Envoy admin dashboard for a pod
istioctl dashboard envoy deploy/myapp

Quick Commands

Install Istio with the demo profile including all components
istioctl install --set profile=demo
Analyze the service mesh configuration for potential issues
istioctl analyze
Show synchronization status of all Envoy sidecar proxies
istioctl proxy-status