Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Istio sidecar injection through annotation doesn't work #2798

Open
6 of 7 tasks
kromanow94 opened this issue Jul 14, 2024 · 2 comments
Open
6 of 7 tasks

Istio sidecar injection through annotation doesn't work #2798

kromanow94 opened this issue Jul 14, 2024 · 2 comments

Comments

@kromanow94
Copy link
Contributor

Validation Checklist

Version

master

Describe your issue

In the Istio docs Installing the Sidecar#Controlling the injection policy, the described way of controlling the istio sidecar injection is through the labels, both for the Pods and Namespaces. In the manifests, a lot of resources seemingly tries to control the sidecar injection behavior through annotation, which just doesn't work.

We should investigate which pods really need the sidecars and comply with the proper istio injection mechanism through labels.

Steps to reproduce the issue

$ kustomize build example/ | yq 'select(.spec.template.metadata.annotations."sidecar.istio.io/inject") | {kind: .kind, name: .metadata.name, istioInjectionValue: .spec.template.metadata.annotations."sidecar.istio.io/inject"}' -y
kind: Deployment
name: cluster-local-gateway
istioInjectionValue: 'false'
---
kind: Deployment
name: istio-ingressgateway
istioInjectionValue: 'false'
---
kind: Deployment
name: istiod
istioInjectionValue: 'false'
---
kind: Deployment
name: activator
istioInjectionValue: 'true'
---
kind: Deployment
name: autoscaler
istioInjectionValue: 'true'
---
kind: Deployment
name: controller
istioInjectionValue: 'true'
---
kind: Deployment
name: net-istio-controller
istioInjectionValue: 'true'
---
kind: Deployment
name: net-istio-webhook
istioInjectionValue: 'true'
---
kind: Deployment
name: webhook
istioInjectionValue: 'true'
---
kind: Deployment
name: admission-webhook-deployment
istioInjectionValue: 'false'
---
kind: Deployment
name: centraldashboard
istioInjectionValue: 'true'
---
kind: Deployment
name: katib-controller
istioInjectionValue: 'false'
---
kind: Deployment
name: katib-db-manager
istioInjectionValue: 'false'
---
kind: Deployment
name: katib-mysql
istioInjectionValue: 'false'
---
kind: Deployment
name: katib-ui
istioInjectionValue: 'true'
---
kind: Deployment
name: kserve-controller-manager
istioInjectionValue: 'false'
---
kind: Deployment
name: kserve-models-web-app
istioInjectionValue: 'true'
---
kind: Deployment
name: kubeflow-pipelines-profile-controller
istioInjectionValue: 'false'
---
kind: Deployment
name: metadata-envoy-deployment
istioInjectionValue: 'false'
---
kind: Deployment
name: profiles-deployment
istioInjectionValue: 'true'
---
kind: Deployment
name: training-operator
istioInjectionValue: 'false'
---
kind: StatefulSet
name: metacontroller
istioInjectionValue: 'false'

Put here any screenshots or videos (optional)

No response

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@kromanow94
Copy link
Contributor Author

Not stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

1 participant