istio: Native sidecars does not work together with otel operator
Is this the right place to submit this?
- This is not a security vulnerability or a crashing bug
- This is not a question about how to use Istio
Bug Description
We have otel operator running which also has mutating webhook and adds init container. It was working fine until we have tried to enable native sidecars on istio. After enabling native sidecars we are getting this error.
Error creating: Pod "xxxxxx" is invalid: [spec.initContainers[1].readinessProbe: Forbidden: may not be set for init containers without restartPolicy=Always, spec.initContainers[1].startupProbe: Forbidden: may not be set for init containers without restartPolicy=Always]
Version
istioctl version:
client version: 1.20.2
control plane version: 1.20.1
data plane version: 1.20.1 (32 proxies)
kubectl version:
Client Version: v1.29.1
Server Version: v1.29.0-eks-c417bb3
Otel operator:
version: 0.92.1
Helm chart version: 0.46.0
Additional Information
We are using istio helm chart installation method. We have tried to change reinvocationPolicy: Never in helm chart to IfNeeded, but it had no effect.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (10 by maintainers)
i am using
k8s: 1.29 Istio Helm Chart: v1.21.2
With “ENABLE_NATIVE_SIDECAR” flag enabled under “env”. After enabling while trying to deploy a sample pod or job where sidecar injection is enabled i am getting below error. Any help would appreciate!
FailedCreate 7s job-controller Error creating: Pod "example-job-cjcs4" is invalid: [spec.initContainers[1].lifecycle: Forbidden: may not be set for init containers without restartPolicy=Always, spec.initContainers[1].readinessProbe: Forbidden: may not be set for init containers without restartPolicy=Always, spec.initContainers[1].startupProbe: Forbidden: may not be set for init containers without restartPolicy=Always]It turn out it was not related to open telemetry operator, but there is a bug on aws https://github.com/aws/amazon-eks-pod-identity-webhook/pull/209. I was testing native sidecars on pod which had no otel instrumentation and aws IRSA attached and most of our fleet have those two components in place. Thanks!