Set up DPDK on On-Premises Worker Nodes
Table of Contents
Expand all | Collapse all
-
- CN-Series Deployment Checklist
- CN-Series Prerequisites
- Install a Device Certificate on the CN-Series Firewall
- Create Service Accounts for Cluster Authentication
- Install the Kubernetes Plugin and Set up Panorama for CN-Series
- Get the Images and Files for the CN-Series Deployment
- Editable Parameters in CN-Series Deployment YAML Files
- Enable Horizontal Pod Autoscaling on the CN-Series
- Secure 5G With the CN-Series Firewall
- Enable Inspection of Tagged VLAN Traffic
- Enable IPVLAN
- Uninstall the Kubernetes Plugin on Panorama
- Features Not Supported on the CN-Series
Set up DPDK on On-Premises Worker Nodes
Data Plane Development Kit (DPDK) provides a simple framework
for fast packet processing in dataplane applications.
- Install the following dependencies.Run all commands on the worker node on which you would like to set up DPDK.
- For CentOS:yum groupinstall 'Development Tools' -y yum install net-tools pciutils -y yum install git gcc make -y yum install numactl-devel -y yum install which -y yum install -y sudo libhugetlbfs-utils libpcap-devel kernel kernel-devel kernel-headers yum update -y yum install epel-release -y yum install python36 -yFor Ubuntu OS:sudo apt install build-essential sudo apt-get install libnuma-dev
- After installing the dependencies:
- Download the DPDK tar file from https://fast.dpdk.org/rel/. See DPDK documentation for compilation steps.wget https://fast.dpdk.org/rel/dpdk-19.11.9.tar.xzUntar the file.tar -xvf dpdk-19.11.9.tar.xz cd dpdk-stable-19.11.9Compile the file. The compiled file will be in thex86_64-native-linuxapp-gccsubfoldermake install T=x86_64-native-linuxapp-gccInsert the compiled kernel module statistically or dynamically during runtime (modprobe/insmod). For more information, see kernel module.cd x86_64-native-linuxapp-gcc/kmod insmod igb_uio.ko insmod rte_kni.koOn Ubuntu, if you see the error—insmod: ERROR: could not insert module igb_uio.ko, insertuiomodule first.modprobe uioUse distribution specific ways to insert modules during boot. Alternatively, you can create a service that runs the modprobe/insmod commands every time the system boots.cp <service-file> to /etc/systemd/system sudo systemctl daemon-reloadActivate and mount 2M hugepages of size 2048K.You can also activate hugepages using the service script in Step 4.echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048/nr_hugepages echo 4292967296 > /sys/fs/cgroup/hugetlb/kubepods.slice/hugetlb.2MB.limit_in_bytes mkdir /mnt/huge mount -t hugetlbfs nodev /mnt/hugeCreate a snapshot of the VM for future use.
Recommended For You