blob: 2efd4e0d292cb3906df02cfe405a676676f12db6 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
---
apiVersion: v1
kind: Pod
metadata:
name: vpp-test1
annotations:
networks: '[
{ "name": "flannel-networkobj" },
{ "name": "vhostuser-networkobj" }
]'
spec:
containers:
- name: vpp-test1
image: vpp-1710:virtio-patched
imagePullPolicy: "Never"
stdin: true
terminationMessagePath: /dev/termination-log
tty: true
securityContext:
privileged: true
volumeMounts:
- mountPath: /vhost-user-net-plugin
name: vhost-user-net-plugin
- mountPath: /mnt/huge
name: huge
nodeSelector:
kubernetes.io/hostname: "{{ groups['kube-node'][0] }}"
volumes:
- name: vhost-user-net-plugin
hostPath:
path: /var/lib/cni/vhostuser
- name: huge
hostPath:
path: /mnt/huge
---
apiVersion: v1
kind: Pod
metadata:
name: vpp-test2
annotations:
networks: '[
{ "name": "flannel-networkobj" },
{ "name": "vhostuser-networkobj" }
]'
spec:
containers:
- name: vpp-test2
image: vpp-1710:virtio-patched
imagePullPolicy: "Never"
stdin: true
terminationMessagePath: /dev/termination-log
tty: true
securityContext:
privileged: true
volumeMounts:
- mountPath: /vhost-user-net-plugin
name: vhost-user-net-plugin
- mountPath: /mnt/huge
name: huge
nodeSelector:
kubernetes.io/hostname: "{{ groups['kube-node'][0] }}"
volumes:
- name: vhost-user-net-plugin
hostPath:
path: /var/lib/cni/vhostuser
- name: huge
hostPath:
path: /mnt/huge
|