forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirt-manifest.yaml.in
62 lines (62 loc) · 1.53 KB
/
virt-manifest.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
apiVersion: v1
kind: Service
metadata:
name: virt-manifest-service
spec:
ports:
- port: 8186
targetPort: virt-manifest
externalIPs:
- "{{ master_ip }}"
selector:
app: virt-manifest
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: virt-manifest
spec:
template:
metadata:
labels:
app: virt-manifest
spec:
containers:
- name: virt-manifest
image: {{ docker_prefix }}/virt-manifest:{{ docker_tag }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8186
name: "virt-manifest"
protocol: "TCP"
volumeMounts:
- name: libvirt-runtime
mountPath: /var/run/libvirt
command:
- "/virt-manifest"
- "--port"
- "8186"
livenessProbe:
httpGet:
path: /api/v1/status
port: 8186
initialDelaySeconds: 10
periodSeconds: 3
- name: manifest-libvirtd
image: {{ docker_prefix }}/libvirt-kubevirt:{{ docker_tag }}
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
runAsUser: 0
env:
- name: LIBVIRTD_DEFAULT_NETWORK_DEVICE
value: {{ primary_nic }}
volumeMounts:
- name: libvirt-runtime
mountPath: /var/run/libvirt
command: ["/libvirtd-limited.sh"]
volumes:
- name: libvirt-runtime
emptyDir: {}
nodeSelector:
kubernetes.io/hostname: {{ primary_node_name }}