deploy ovsdpdk by k8s
[openretriever.git] / src / vagrant / k8s_kubeadm / examples / virtio-user.yaml
1 apiVersion: v1
2 kind: ReplicationController
3 metadata:
4   name: virtiouser
5 spec:
6   replicas: 2
7   template:
8     metadata:
9       labels:
10         app: virtiouser
11     spec:
12       containers:
13       - name: virtiouser
14         image: openretriever/virtio-user-ping
15         volumeMounts:
16         - mountPath: /dev/hugepages
17           name: hugepage-volume
18         - mountPath: /var/run
19           name: vhost-volume
20         command:
21           - /root/setup_virtio_user.sh
22       volumes:
23       - name: hugepage-volume
24         hostPath:
25           path: /dev/hugepages
26       - name: vhost-volume
27         hostPath:
28           path: /var/run
29       restartPolicy: Always