aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/reference-definitions/pod-defs/vpp/userspace-dpdk-pod.yaml
blob: 4b72df22832a44077a73e6d2e51e47706ad9cf86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: v1
kind: Pod
metadata:
  name: userspace-vpp-pod
  annotations:
    k8s.v1.cni.cncf.io/networks: userspace-vpp-net, userspace-vpp-net
spec:
  containers:
  - name: vpp-vhost
    image: newdpdk-app-centos:latest
    imagePullPolicy: Never
    securityContext:
      privileged: true
    volumeMounts:
    - mountPath: /etc/podnetinfo
      name: podinfo
      readOnly: false
    - mountPath: /var/lib/cni/usrspcni/
      name: shared-dir
    - mountPath: /dev/hugepages
      name: hugepage
    resources:
      requests:
        cpu: "6000m"
        memory: "4000Mi"
        hugepages-1Gi: 4Gi
      limits:
        cpu: "6000m"
        memory: "4000Mi"
        hugepages-1Gi: 4Gi
    command: ["sleep", "infinity"]
  nodeSelector:
    vswitch: ovs
  volumes:
  - name: podinfo
    downwardAPI:
      items:
        - path: "labels"
          fieldRef:
            fieldPath: metadata.labels
        - path: "annotations"
          fieldRef:
            fieldPath: metadata.annotations
  - name: shared-dir
    hostPath:
      path: /var/lib/cni/usrspcni/data/
  - name: hugepage
    emptyDir:
      medium: HugePages