forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virt-api.yaml.in
42 lines (42 loc) · 915 Bytes
/
virt-api.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
apiVersion: v1
kind: Service
metadata:
name: virt-api-service
spec:
ports:
- port: 8183
targetPort: virt-api
externalIPs :
- "{{ master_ip }}"
selector:
app: virt-api
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: virt-api
spec:
template:
metadata:
labels:
app: virt-api
spec:
serviceAccountName: kubevirt-infra
containers:
- name: virt-api
image: {{ docker_prefix }}/virt-api:{{ docker_tag }}
imagePullPolicy: IfNotPresent
command:
- "/virt-api"
- "--port"
- "8183"
- "--spice-proxy"
- "{{ master_ip }}:3128"
ports:
- containerPort: 8183
name: "virt-api"
protocol: "TCP"
securityContext:
runAsNonRoot: true
nodeSelector:
kubernetes.io/hostname: {{ primary_node_name }}