istio commands
19 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 19 shown
-
istioctl install --set profile=demo -yInstall Istio with the demo configuration profile
-
kubectl label namespace default istio-injection=enabledEnable automatic Envoy sidecar injection for a namespace
-
istioctl proxy-statusGet sync status of all Envoy proxies in the mesh
-
istioctl analyzeAnalyze Istio configuration for potential issues
-
istioctl proxy-config all deploy/myappShow complete Envoy proxy config for a deployment
-
kubectl apply -f virtualservice.yamlApply a VirtualService to define traffic routing rules
-
kubectl apply -f destinationrule.yamlApply a DestinationRule to define load balancing and circuit breaker policies
-
kubectl apply -f - <<EOF apiVersion: security.istio.io/v1beta1 kind: PeerAuthentication metadata: name: default namespace: default spec: mtls: mode: STRICT EOFEnforce strict mutual TLS for all workloads in namespace
-
istioctl kube-inject -f deployment.yaml | kubectl apply -f -Manually inject Istio sidecar into a deployment manifest
-
istioctl dashboard kialiOpen Kiali service mesh dashboard in browser
-
istioctl dashboard jaegerOpen Jaeger distributed tracing dashboard
-
kubectl logs -l app=myapp -c istio-proxy | head -50View Envoy access logs from the sidecar container
-
# In VirtualService spec.http[].fault.delayInject artificial delay to test resilience (in VirtualService)
-
# In VirtualService spec.http[].mirrorMirror traffic to a shadow service for testing
-
istioctl uninstall --purge -yCompletely remove Istio from the cluster
-
kubectl apply -f - <<EOF apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: myapp spec: hosts: - myapp http: - route: - destination: host: myapp subset: v1 weight: 80 - destination: host: myapp subset: v2 weight: 20 EOFRoute 80% traffic to v1, 20% to v2 (canary split)
-
kubectl apply -f - <<EOF apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata: name: myapp spec: host: myapp trafficPolicy: outlierDetection: consecutive5xxErrors: 5 interval: 10s baseEjectionTime: 30s subsets: - name: v1 labels: version: v1 - name: v2 labels: version: v2 EOFDefine subsets and circuit breaker (outlier detection)
-
kubectl apply -f - <<EOF apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: myapp spec: hosts: - myapp http: - fault: delay: percentage: value: 100 fixedDelay: 5s route: - destination: host: myapp EOFInject 5s delay for 100% of requests to test resilience
-
kubectl apply -f - <<EOF apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: myapp spec: hosts: - myapp http: - route: - destination: host: myapp subset: v1 weight: 100 mirror: host: myapp subset: v2 mirrorPercentage: value: 100 EOFMirror 100% of traffic to v2 shadow service
no commands match — try a different search