← All insightsAutomation

Automating Istio from scratch

CodeWizard Academy · 13 March 2026 · 3 min read · Intermediate

Anything you do to Istio twice should be automated. This walks the path from a manual install to a repeatable, pipeline-driven setup.

1. Install it reproducibly

bash
istioctl install --set profile=demo -y
kubectl label namespace default istio-injection=enabled
istioctl verify-install

2. Describe the desired state

Shift 10% of traffic to v2 with a VirtualService.

yaml
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: { name: web }
spec:
  hosts: [web]
  http:
    - route:
        - destination: { host: web, subset: v1 }
          weight: 90
        - destination: { host: web, subset: v2 }
          weight: 10

3. Run it from CI

Enforce strict mTLS mesh-wide.

yaml
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata: { name: default, namespace: istio-system }
spec: { mtls: { mode: STRICT } }

Want senior help putting Istio to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult