forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirt-handler.yaml.in
47 lines (47 loc) · 1.16 KB
/
virt-handler.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: virt-handler
spec:
template:
metadata:
name: virt-handler
labels:
daemon: virt-handler
spec:
serviceAccountName: kubevirt-infra
hostPID: true
containers:
- name: virt-handler
ports:
- containerPort: 8185
hostPort: 8185
image: {{ docker_prefix }}/virt-handler:{{ docker_tag }}
imagePullPolicy: IfNotPresent
command:
- "/virt-handler"
- "-v"
- "3"
- "--libvirt-uri"
- "qemu:///system"
- "--hostname-override"
- "$(NODE_NAME)"
securityContext:
privileged: true
volumeMounts:
- name: libvirt-runtime
mountPath: /var/run/libvirt
- name: virt-share-dir
mountPath: /var/run/kubevirt
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- name: libvirt-runtime
hostPath:
path: /var/run/libvirt
- name: virt-share-dir
hostPath:
path: /var/run/kubevirt