-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathmacvtap.yaml
More file actions
73 lines (73 loc) · 2.01 KB
/
Copy pathmacvtap.yaml
File metadata and controls
73 lines (73 loc) · 2.01 KB
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
69
70
71
72
73
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: macvtap-cni
namespace: default
spec:
selector:
matchLabels:
name: macvtap-cni
template:
metadata:
labels:
name: macvtap-cni
spec:
hostNetwork: true
hostPID: true
priorityClassName: system-node-critical
containers:
- name: macvtap-cni
command: ["/macvtap-deviceplugin", "-v", "3", "-logtostderr"]
envFrom:
- configMapRef:
name: macvtap-deviceplugin-config
image: quay.io/kubevirt/macvtap-cni:latest
imagePullPolicy: Always
resources:
requests:
cpu: "60m"
memory: "30Mi"
securityContext:
privileged: true
volumeMounts:
- name: deviceplugin
mountPath: /var/lib/kubelet/device-plugins
terminationMessagePolicy: FallbackToLogsOnError
readinessProbe:
exec:
command:
- sh
- -c
- ls /var/lib/kubelet/device-plugins/macvtap.network.kubevirt.io* >/dev/null 2>&1
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
exec:
command:
- sh
- -c
- ls /var/lib/kubelet/device-plugins/macvtap.network.kubevirt.io* >/dev/null 2>&1
initialDelaySeconds: 15
periodSeconds: 60
initContainers:
- name: install-cni
command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"]
image: quay.io/kubevirt/macvtap-cni:latest
imagePullPolicy: Always
resources:
requests:
cpu: "10m"
memory: "15Mi"
securityContext:
privileged: true
volumeMounts:
- name: cni
mountPath: /host/opt/cni/bin
mountPropagation: Bidirectional
volumes:
- name: deviceplugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: cni
hostPath:
path: /opt/cni/bin