apiVersion: v1
kind: Pod
metadata:
  name: hugepage-2c-2p-2
spec:
  containers:
  - name: example
    image: ubuntu:latest
    command:
    - sleep
    - inf
    volumeMounts:
    - mountPath: /root/dpdk
      name: dpdk
    - mountPath: /lib/aarch64-linux-gnu
      name: lib
    - mountPath: /dev/hugepages
      name: dev-hp
      # if non-default hugepage is used, uncomment the followings
      #    - mountPath: /hugepages
      #name: mnt-huge
    - mountPath: /var/run/dpdk
      name: dpdk-config
    resources:
      limits:
        hugepages-2Mi: 10Mi
        memory: 100Mi
      requests:
        memory: 100Mi
  volumes:
  - name: dev-hp
    hostPath:
      path: /dev/hugepages
  - name: dpdk-config
    hostPath:
      path: /home/cychong/tmp/dpdk_config
  - name: dpdk
    hostPath:
      path: /home/cychong/tmp/dpdk-21.11/build/examples
      type: Directory
  - name: lib
    hostPath:
      path: /lib/aarch64-linux-gnu
      type: Directory
