istioistio-sidecaristio-operator

IstioOperator and sidecar autoinjection


How to enable sidecar injection using IstioOperator? This is my config and it is not enough for that.

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  name: control-plane-1-9-4
  namespace: istio-system
spec:
  components:
    base:
      enabled: true
    pilot:
      enabled: true
  profile: default
  revision: 1-9-4
  values:
    global:
      proxy:
        autoInject: enabled

Solution

  • The issue is related to revision parameter usage during installation istioctl operator init --revision 1-9-4

    If --revision is used then NS should look like:

    apiVersion: v1
    kind: Namespace
    metadata:
      labels:
        istio.io/rev: 1-9-4
      name: default
    

    Issue report: https://github.com/istio/istio/issues/32746