Traffic routing — VirtualService

Apply a VirtualService to define traffic routing rules

kubectl apply -f virtualservice.yaml

tool
istio19 commands
tags
istioservice-meshvirtualservicerouting

More istio commands

  • kubectl apply -f destinationrule.yaml

    Apply 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 EOF

    Enforce 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 kiali

    Open Kiali service mesh dashboard in browser

  • istioctl dashboard jaeger

    Open Jaeger distributed tracing dashboard

all 19 istio commands