-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.yaml
53 lines (53 loc) · 1.17 KB
/
pod.yaml
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
apiVersion: v1
kind: Pod
metadata:
name: bess
annotations:
k8s.v1.cni.cncf.io/networks: '[
{ "name": "sriov-net-dpdk", "interface": "foo" }
]'
spec:
containers:
- name: net-tools
image: busybox
command: ["sleep", "86400"]
- name: bess
image: krsna1729/bess-router
stdin: true
tty: true
env:
- name: IFNAME
value: foo
args:
- -grpc-url=0.0.0.0:10514
livenessProbe:
tcpSocket:
port: 10514
initialDelaySeconds: 15
periodSeconds: 20
lifecycle:
postStart:
exec:
command: ["bash", "-c", "until /opt/bess/bessctl/bessctl daemon reset -- run file /conf/router.bess -- show pipeline; do sleep 2; done;"]
securityContext:
capabilities:
add:
- IPC_LOCK # AF_PACKET vdev uses mmap
resources:
limits:
hugepages-1Gi: 2Gi
cpu: 2
memory: 256Mi
intel.com/sriov_vfio: '1'
volumeMounts:
- name: bess-conf
mountPath: /conf
- name: hugepages
mountPath: /dev/hugepages
volumes:
- name: bess-conf
configMap:
name: router
- name: hugepages
emptyDir:
medium: HugePages