aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 156 forks source link

Recommended setup for running on K8S #435

Open marcusschiesser opened 6 years ago

marcusschiesser commented 6 years ago

I found a white paper about running DPDK programs as container on K8S, see: https://builders.intel.com/docs/networkbuilders/enabling_new_features_in_kubernetes_for_NFV.pdf

But this look overly complicated.

So what's the recommended setup for running a nff-go program as container on K8S?

gshimansky commented 6 years ago

We use Docker to run our tests, so if you use Docker containers you can use this command line

docker run -it --privileged -v /sys/bus/pci/drivers:/sys/bus/pci/drivers -v /sys/kernel/mm/hugepages:/sys/kernel/mm/hugepages -v /sys/devices/system/node:/sys/devices/system/node -v /dev:/dev yourimagename
marcusschiesser commented 6 years ago

I see, so the idea would be to run it as privileged container on K8S that is directly accessing resources of the K8S node.

That means the K8S node needs to be configured accordingly - do you have setup recommendations for this? Also I guess a template for a K8S deployment descriptor would be helpful.

aregm commented 6 years ago

Hi @marcusschiesser ! Can you tell a little bit more about your application and NFF-Go? You can do it privately - areg dot melik-adamyan at intel dot com. We have that task in our roadmap but not on the top. If there is a production usage need, we can consider moving it up in the list.