-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkubevirt-stack-app.yaml
276 lines (243 loc) · 8.9 KB
/
kubevirt-stack-app.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# KubeVirt extends Kubernetes by adding additional virtualization resource types
# (especially the VM type) through Kubernetes's Custom Resource Definitions API.
# By using this mechanism, the Kubernetes API can be used to manage these VM resources
# alongside all other resources Kubernetes provides.
# https://github.com/kubevirt/kubevirt
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kubevirt-stack
namespace: argocd
spec:
project: kubevirt
destination:
namespace: kubevirt
server: 'https://kubernetes.default.svc'
source:
repoURL: https://github.com/cloudymax/kubevirt-community-stack.git
targetRevision: HEAD
path: charts/kubevirt-stack/
helm:
valuesObject:
################################################################################
# ___ _ __ ___ _ __ __ _| |_ ___ _ __
# / _ \| '_ \ / _ \ '__/ _` | __/ _ \| '__|
# | (_) | |_) | __/ | | (_| | || (_) | |
# \___/| .__/ \___|_| \__,_|\__\___/|_|
# |_|
################################################################################
replicaCount: 1
serviceAccount:
create: true
annotations: {}
name: "kubevirt-operator"
securityContext:
privileged: true
resources: {}
nodeSelector: {}
tolerations:
- key: CriticalAddonsOnly
operator: Exists
monitorNamespace: "prometheus"
prometheus:
enabled: true
serviceName: "prom-stack-kube-prometheus-prometheus"
serviceNamesapce: "prometheus"
permittedHostDevices:
pciHostDevices:
- pciVendorSelector: "10de:2782"
resourceName: "nvidia.com/AD104_GeForce_RTX4070Ti"
# - pciVendorSelector: "10de:1e04"
# resourceName: "nvidia.com/TU102_GeForce_RTX2080Ti"
# - pciVendorSelector: "10de:17fd"
# resourceName: "nvidia.com/GM200GL_Tesla_M40"
mediatedDevices:
- mdevNameSelector: "GRID M60-2Q"
resourceName: "nvidia.com/GRID_M60-2Q"
- mdevNameSelector: "GRID RTX6000-4Q"
resourceName: "nvidia.com/GRID_RTX6000-4Q"
mediatedDevicesTypes:
- nvidia-18
useEmulation: false
featureGates:
- ExpandDisks
- CPUManager
- GPU
- HostDevices
- VMExport
- HotplugVolumes
- HostDisk
- Macvtap
- Passt
- HotplugNICs
- clientPassthrough
- Snapshot
- CPUNodeDiscovery
################################################################################
# ____ ____ ___
# / ___| _ \_ _|
# | | | | | | |
# | |___| |_| | |
# \____|____/___|
################################################################################
cdi:
replicaCount: 1
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: "kubevirt-cdi-service-account"
service:
type: ClusterIP
port: 8080
name: metrics
protocol: TCP
uploadProxy:
type: ClusterIP
port: 443
targetPort: 8443
protocol: TCP
ingress:
enabled: false
resources:
requests:
cpu: 10m
memory: 150Mi
tolerations:
- key: CriticalAddonsOnly
operator: Exists
affinity: {}
cdi:
featureGates:
- HonorWaitForFirstConsumer
resources:
limits:
cpu: "4"
memory: 4Gi
requests:
cpu: "1"
memory: 250Mi
################################################################################
# __ __
# | \/ | __ _ _ __ __ _ __ _ ___ _ __
# | |\/| |/ _` | '_ \ / _` |/ _` |/ _ \ '__|
# | | | | (_| | | | | (_| | (_| | __/ |
# |_| |_|\__,_|_| |_|\__,_|\__, |\___|_|
################################################################################
manager:
enabled: true
replicaCount: 1
service:
type: ClusterIP
port: 8080
protocol: TCP
name: http
prometheus:
enabled: false
serviceName: "thanos-app-query-frontend"
serviceNamespace: "monitoring"
ingress:
enabled: true
className: "nginx"
hostname: kubevirt.buildstar.online
annotations:
cert-manager.io/cluster-issuer: "{{ .global_cluster_issuer }}"
nginx.ingress.kubernetes.io/auth-signin: "https://{{ .vouch_hostname }}/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err"
nginx.ingress.kubernetes.io/auth-url: https://{{ .vouch_hostname }}/validate
nginx.ingress.kubernetes.io/auth-response-headers: X-Vouch-User
nginx.ingress.kubernetes.io/auth-snippet: |
auth_request_set $auth_resp_jwt $upstream_http_x_vouch_jwt;
auth_request_set $auth_resp_err $upstream_http_x_vouch_err;
auth_request_set $auth_resp_failcount $upstream_http_x_vouch_failcount;
# when VP is hosted externally to k8s ensure the SSL cert is valid to avoid MITM risk
proxy_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
proxy_ssl_session_reuse on;
proxy_ssl_verify_depth 2;
proxy_ssl_verify on;
tls:
enabled: true
secretName: "tls-kubevirt-manager"
################################################################################
# ____ _ _ _ ____ ___
# / ___| |_ _ ___| |_ ___ _ __ / \ | _ \_ _|
# | | | | | | / __| __/ _ \ '__| / _ \ | |_) | |
# | |___| | |_| \__ \ || __/ | / ___ \| __/| |
# \____|_|\__,_|___/\__\___|_| /_/ \_\_| |___|
#
################################################################################
capi:
enabled: false
core: "cluster-api:v1.9.1"
bootstrap: "kubeadm:v1.9.1"
controlPlane: "kubeadm:v1.9.1"
infrastructure: "kubevirt:v0.1.9"
addon: ""
manager: {}
# featureGates:
# kubeadm:
# MachinePool: true
# KubeadmBootstrapFormatIgnition: true
# core:
# MachinePool: true
# KubeadmBootstrapFormatIgnition: true
# kubevirt:
# MachinePool: true
# KubeadmBootstrapFormatIgnition: true
# bootstrap:
# MachinePool: true
# KubeadmBootstrapFormatIgnition: true
configSecret: {}
replicaCount: 1
image:
manager:
repository: registry.k8s.io/capi-operator/cluster-api-operator
tag: v0.15.0
pullPolicy: IfNotPresent
env:
manager: []
imagePullSecrets: {}
args:
- --leader-elect
resources: {}
# manager:
# limits:
# cpu: 100m
# memory: 150Mi
# requests:
# cpu: 100m
# memory: 100Mi
containerSecurityContext: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- arm64
- ppc64le
- key: kubernetes.io/os
operator: In
values:
- linux
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
volumes:
- name: cert
secret:
defaultMode: 420
secretName: capi-operator-webhook-service-cert
volumeMounts:
manager:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true