but still deployments with this label (or annotation) does not gets injected.
the namespace does not includes the istio-injection label, and policy is enabled.
what am i missing?
cant i chose to inject automatically only on workloads i want? (to be able to enroll to istio gradually)
to the deployment, to cause the deployment to be injected, even if the namespsace isnt, but it did not work.
i saw another approach to update the sidecar-inject configmap and update the AlwaysInjectSelector like the following
config: |-
policy: enabled
alwaysInjectSelector:
- matchExpressions:
- {key: inject-proxy, operator: Exists}
but also this did not worked and cause the pod to get injected.
i’ve solved it by disabling the policy on the sidecar-inject configmap, enabling the auto inject on the namespace and then only when deployment includes the sidecar.istio.io/inject annotation i’m able to control if i want to inject or not.