tumblr / k8s-sidecar-injector

Kubernetes sidecar injection service
Apache License 2.0
345 stars 75 forks source link

Skip injection for host network pods #48

Open wkgcass opened 4 years ago

wkgcass commented 4 years ago

What and why?

Provide the ability to skip the injection for host network pods.

Some sidecars will run ip rule, ip route and iptables to manipulate traffic to/from the sidecar. This might be dangerous if the pod is running hostNetwork. It would be great if the injector configuration can be configured to skip the injection for host network pods, just like Istio.

Testing Steps

Reviewers

Required reviewers: @byxorna Request reviews from other people you want to review this PR in the "Reviewers" section on the right.

:warning: this PR must have at least 2 thumbs from the MAINTAINERS.md of the project before merging!