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
Added unit tests for this feature (make test)
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!
What and why?
Provide the ability to skip the injection for host network pods.
Some sidecars will run
ip rule
,ip route
andiptables
to manipulate traffic to/from the sidecar. This might be dangerous if the pod is runninghostNetwork
. It would be great if the injector configuration can be configured to skip the injection for host network pods, just like Istio.Testing Steps
make test
)Reviewers
Required reviewers:
@byxorna
Request reviews from other people you want to review this PR in the "Reviewers" section on the right.