Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: 1.22
Cloud being used: (put bare-metal if not on a public cloud) : Bare-metal
Installation method:
Host OS: Centos 7
CNI and version:
CRI and version:
Hi Experts,
I am working on a requirement where my application is using a third party library specifically for data plane communication. The third party library creates virtual interface at init time and further uses that vEth for internal functionality. When I run same App on Bare-metal, it works fine, where as when I run this application inside Pod having host-network permissions then also it works fine.
But while running same application without host-network permissions, it fails to create vEth at init time successfully.
As I don’t want to expose whole host network inside the Pod, do we have any other way / permissions via which any application inside PoD should be able to create vEth without exposing whole host network ?
Example to check similar functionality via Linux commands:
-
Deploy PoD with host-network permissions:
Create a link using command : ip link add vEth0 type dummy
Result : It creates vEth0 (ifconfig -a) and also creates at /sys/devices/virtual/net/vEth0 -
Deploy PoD without host-network permissions:
Create a link using command : ip link add vEth0 type dummy
Result : It does not create vEth0 at /sys/devices/virtual/net/vEth0