summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_ovsdpdk/examples/virtio-user.yaml
blob: 9ab1e06e8d006b13e359839eebabdaf1e25c1ac9 (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
apiVersion: v1
kind: ReplicationController
metadata:
  name: virtiouser
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: virtiouser
    spec:
      containers:
      - name: virtiouser
        image: openretriever/virtio-user-ping
        volumeMounts:
        - mountPath: /dev/hugepages
          name: hugepage-volume
        - mountPath: /var/run
          name: vhost-volume
        command:
          - /root/setup_virtio_user.sh
      volumes:
      - name: hugepage-volume
        hostPath:
          path: /dev/hugepages
      - name: vhost-volume
        hostPath:
          path: /var/run
      restartPolicy: Always