forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virt-handler.yaml.in
40 lines (40 loc) · 975 Bytes
/
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: virt-handler
spec:
template:
metadata:
name: virt-handler
labels:
daemon: virt-handler
spec:
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
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- name: libvirt-runtime
hostPath:
path: /var/run/libvirt