← All cheatsheets
$ istioctl analyze -AInstall Istio in sidecar or ambient mode, inspect proxy config, debug traffic rules and open the mesh dashboards.
Install
istioctl x precheckCheck the cluster before installingistioctl install --set profile=default -yInstall Istio with sidecarsistioctl install --set profile=ambient -yInstall Istio ambient modekubectl label namespace default istio-injection=enabledTurn on sidecar injectionkubectl label namespace default istio.io/dataplane-mode=ambientAdd a namespace to the ambient meshistioctl waypoint apply -n default --enroll-namespaceAdd a waypoint proxy for L7 in ambientistioctl versionShow control plane and data plane versionsInspect and debug
istioctl analyze -AFind config problems across namespacesistioctl proxy-statusCheck if proxies are in sync with istiodistioctl proxy-config routes deploy/productpage -n defaultShow routes a proxy usesistioctl proxy-config cluster deploy/productpage -n defaultShow upstream clustersistioctl proxy-config endpoints deploy/productpage -n defaultShow endpoints and healthistioctl x describe pod productpage-v1-abc123 -n defaultExplain which rules apply to a podistioctl proxy-config log deploy/productpage --level debugTurn up proxy loggingistioctl ztunnel-config workloadsList workloads seen by ztunnel in ambientTraffic and security resources
kubectl get virtualservices,destinationrules -AList traffic ruleskubectl get gateways.networking.istio.io -AList Istio gatewayskubectl get peerauthentication,authorizationpolicies -AList mTLS and access policiesistioctl dashboard kialiOpen Kialiistioctl uninstall --purge -yRemove Istio completelyStrict mTLS for a namespace
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: prod
spec:
mtls:
mode: STRICT