apiVersion: v1
kind: Pod
metadata:
  name: userspace-vpp-pod-1
  annotations:
    k8s.v1.cni.cncf.io/networks: userspace-vpp-net-1, userspace-vpp-net-2
    userspace/mappedDir: /var/lib/cni/usrspcni/
spec:
  containers:
  - name: multi-memif-example
    image: dpdk-app-centos:latest
    imagePullPolicy: Never
    securityContext:
      privileged: true
    volumeMounts:
    - mountPath: /etc/podinfo
      name: podinfo
      readOnly: false
    - mountPath: /var/lib/cni/usrspcni/
      name: shared-dir
    - mountPath: /dev/hugepages
      name: hugepage
    resources:
      requests:
        memory: 2Mi
      limits:
        hugepages-2Mi: 1024Mi
  nodeSelector:
    vswitch: vpp
  volumes:
  - name: podinfo
    downwardAPI:
      items:
        - path: "labels"
          fieldRef:
            fieldPath: metadata.labels
        - path: "annotations"
          fieldRef:
            fieldPath: metadata.annotations
  - name: shared-dir
    hostPath:
      path: /var/run/vpp/
  - name: hugepage
    emptyDir:
      medium: HugePages

