forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libvirt.yaml.in
77 lines (77 loc) · 2.15 KB
/
libvirt.yaml.in
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
74
75
76
77
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: libvirt
spec:
template:
metadata:
name: libvirt
labels:
daemon: libvirt
spec:
serviceAccountName: kubevirt-infra
hostNetwork: true
hostPID: true
hostIPC: true
securityContext:
runAsUser: 0
containers:
- name: libvirtd
ports:
- containerPort: 16509
hostPort: 16509
image: {{ docker_prefix }}/libvirt-kubevirt:{{ docker_tag }}
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
runAsUser: 0
env:
- name: LIBVIRTD_DEFAULT_NETWORK_DEVICE
value: {{ primary_nic }}
volumeMounts:
- mountPath: /host-dev
name: host-dev
- mountPath: /host-sys
name: host-sys
- name: libvirt-data
mountPath: /var/lib/libvirt
- name: libvirt-runtime
mountPath: /var/run/libvirt
- name: virt-share-dir
mountPath: /var/run/kubevirt
command: ["/libvirtd.sh"]
- name: virtlogd
image: {{ docker_prefix }}/libvirt-kubevirt:{{ docker_tag }}
imagePullPolicy: IfNotPresent
volumeMounts:
- name: libvirt-runtime
mountPath: /var/run/libvirt
command: ["/usr/sbin/virtlogd", "-f", "/etc/libvirt/virtlogd.conf"]
- name: virt-dhcp
image: {{ docker_prefix }}/virt-dhcp:{{ docker_tag }}
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
runAsUser: 0
volumeMounts:
- name: libvirt-runtime
mountPath: /var/run/libvirt
- name: virt-share-dir
mountPath: /var/run/kubevirt
command: ["/virt-dhcp"]
volumes:
- name: libvirt-data
hostPath:
path: /var/lib/libvirt-container
- name: libvirt-runtime
hostPath:
path: /var/run/libvirt
- name: host-dev
hostPath:
path: /dev
- name: host-sys
hostPath:
path: /sys
- name: virt-share-dir
hostPath:
path: /var/run/kubevirt