Set up DPDK on AWS EKS
Focus
Focus
CN-Series

Set up DPDK on AWS EKS

Table of Contents

Set up DPDK on AWS EKS

On AWS EKS, each pod has one network interface assigned by the Amazon VPC CNI plugin. Using Multus, you can create pods with multiple interfaces.
  1. Create an AWS account if you don’t already have one.
  2. Create an EKS cluster using the custom AMI. For more information, see, creating an amazon EKS cluster.
  3. Modify VPC and node settings. For more information see, AWS EKS documentation.
  4. (Multus)
    Add multiple ENIs to the EKS node, and load KNI and UIO drivers.
    • Use the following tag to add multiple ENIs to the EKS node.
      'Key': 'node.k8s.amazonaws.com/no_manage', 'Value': 'true'
      When the tag is detected, the interface can then be used by Multus CNI. For more information, see AWS documentation.
    • Run the following commands in the AWS CLI.
      aws ec2 create-network-interface --subnet-id <> --description "test" --groups <> --region=us-west-1 --tag-specifications 'ResourceType=network-interface,Tags=[{Key='node.k8s.amazonaws.com/no_manage',Value='true'}]' aws ec2 attach-network-interface --network-interface-id <> --instance-id <> --device-index 2
    • (If you’re not using custom AMI)
      Enable hugepages on the worker nodes.
      echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages mkdir -p /mnt/huge mount -t hugetlbfs nodev /mnt/huge service kubelet restart

Recommended For You