---
id: service-mesh-istio-service-mesh-sidecar-injection
name: "Istio Service Mesh — Sidecar Injection"
description: >-
  Installs istio/base + istio/istiod, enables mesh injection on the product namespace, deploys the
  product chart with mesh.inject=true and scope.enabled=true, and verifies every product pod has
  exactly 2 containers including istio-proxy and in-mesh HTTP reaches the product Service with
  200.
labels: {customer: any, profile: mesh}
cluster:
  provider: kind
  k8s_version: v1.36.1
  preinstall:
    - kind: helm
      chart: istio/base
      version: 1.27.9
      release: istio-base
      namespace: istio-system
      repo:
        name: istio
        url: "https://istio-release.storage.googleapis.com/charts"
      values: {}
      wait: helm-deployed
      wait_timeout: 2m
    - kind: helm
      chart: istio/istiod
      version: 1.27.9
      release: istiod
      namespace: istio-system
      repo:
        name: istio
        url: "https://istio-release.storage.googleapis.com/charts"
      values:
        pilot:
          resources:
            requests:
              cpu: "100m"
              memory: "384Mi"
      wait: pods-ready
      wait_timeout: 5m
  helm_timeout: 10m
product:
  chart: ./chart
  release: sample
  namespace: sample
  set:
    mesh.inject: "true"
asserts:
  - type: helm-status-deployed
    release: istio-base
    namespace: istio-system
  - type: helm-status-deployed
    release: istiod
    namespace: istio-system
  - type: helm-status-deployed
    release: sample
    namespace: sample
  - type: pods-ready
    namespace: istio-system
    selector: app=istiod
    timeout: 5m
  - type: pods-ready
    namespace: sample
    timeout: 5m
  - type: smoke-script
    path: chart-test/assertions/istio-sidecar-injection.sh
tags: [nightly]
mechanisms: ['addon:istio', 'mesh:istio-service-mesh']
category: service-mesh
integration: istio
tier: live
