-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathvalues-baremetal.yaml
More file actions
505 lines (481 loc) · 16.5 KB
/
Copy pathvalues-baremetal.yaml
File metadata and controls
505 lines (481 loc) · 16.5 KB
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
# Bare metal deployment for confidential containers.
# Supports Intel TDX and AMD SEV-SNP with optional NVIDIA GPU.
# Hardware profile (global.hardware.profile) controls which operators are active.
# Set main.clusterGroupName: baremetal in values-global.yaml to use.
clusterGroup:
name: baremetal
isHubCluster: true
namespaces:
- open-cluster-management
- vault
- external-secrets-operator:
operatorGroup: true
targetNamespaces: []
- external-secrets
- openshift-sandboxed-containers-operator
- trustee-operator-system
- cert-manager-operator
- cert-manager
- hello-openshift
- kbs-access
- openshift-cnv
- openshift-storage
- openshift-nfd
- baremetal
- intel-dcap
- intel-dcap-operator-system:
operatorGroup: true
targetNamespaces: []
- nvidia-gpu-operator
- gpu-workload
- kyverno
- kubevirt-vms
subscriptions:
acm:
name: advanced-cluster-management
namespace: open-cluster-management
annotations:
argocd.argoproj.io/sync-wave: "10"
eso:
name: openshift-external-secrets-operator
namespace: external-secrets-operator
channel: stable-v1
sandbox:
name: sandboxed-containers-operator
namespace: openshift-sandboxed-containers-operator
channel: stable
installPlanApproval: Manual
csv: sandboxed-containers-operator.v1.13.0
annotations:
argocd.argoproj.io/sync-wave: "10"
trustee:
name: trustee-operator
namespace: trustee-operator-system
channel: stable
installPlanApproval: Manual
csv: trustee-operator.v1.2.0
annotations:
argocd.argoproj.io/sync-wave: "10"
cert-manager:
name: openshift-cert-manager-operator
namespace: cert-manager-operator
channel: stable-v1
annotations:
argocd.argoproj.io/sync-wave: "10"
lvm-operator:
name: lvms-operator
namespace: openshift-storage
cnv:
name: kubevirt-hyperconverged
namespace: openshift-cnv
channel: stable
nfd:
name: nfd
namespace: openshift-nfd
channel: stable
annotations:
argocd.argoproj.io/sync-wave: "10"
intel-device-plugins:
name: intel-device-plugins-operator
namespace: openshift-operators
# Required for airgap -- set to your mirrored catalog source name
# source: cs-certified-operator-index-v4-22
channel: stable
annotations:
argocd.argoproj.io/sync-wave: "10"
intel-tdx-dcap:
name: intel-tdx-dcap-operator
namespace: intel-dcap-operator-system
# Required for airgap -- set to your mirrored catalog source name
# source: cs-certified-operator-index-v4-22
channel: alpha
annotations:
argocd.argoproj.io/sync-wave: "10"
# GPU operator disabled — NVIDIA bundle image has oc-mirror signature issue.
# Re-enable when NVIDIA bundle is mirrored or upstream fix lands.
# gpu-operator:
# name: gpu-operator-certified
# namespace: nvidia-gpu-operator
# source: cs-certified-operator-index-v4-22
# channel: v26.3
# installPlanApproval: Manual
# csv: gpu-operator-certified.v26.3.0
# annotations:
# argocd.argoproj.io/sync-wave: "25"
projects:
- hub
- vault
- trustee
- external-secrets
- sandbox
- workloads
- default
# Explicitly mention the cluster-state based overrides we plan to use for this pattern.
# We can use self-referential variables because the chart calls the tpl function with these variables defined
sharedValueFiles:
- '/overrides/values-{{ $.Values.global.clusterPlatform }}.yaml'
- '/overrides/values-storage-{{ $.Values.global.storageProvider }}.yaml'
- '/overrides/values-{{ $.Values.global.clusterVersion }}.yaml'
- '/overrides/values-hw-{{ $.Values.global.hardware.profile }}.yaml'
- '/overrides/values-baremetal-airgap.yaml'
extraObjects:
wait-for-vault-unsealed:
apiVersion: batch/v1
kind: Job
metadata:
name: wait-for-vault-unsealed
annotations:
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/hook-delete-policy: HookSucceeded,BeforeHookCreation
argocd.argoproj.io/sync-wave: "5"
spec:
backoffLimit: 10
activeDeadlineSeconds: 1800
template:
spec:
restartPolicy: OnFailure
containers:
- name: wait-for-vault
image: registry.redhat.io/openshift4/ose-cli:latest
command:
- /bin/bash
- -c
- |
echo "Waiting for vault to be unsealed..."
while true; do
if curl -sk https://vault.vault.svc:8200/v1/sys/seal-status | grep -q '"sealed":false'; then
echo "Vault unsealed. Waiting 120s for secrets to load..."
sleep 120
echo "Done. Proceeding."
exit 0
fi
echo "Vault not ready. Retrying in 15s..."
sleep 15
done
applications:
acm:
name: acm
namespace: open-cluster-management
project: hub
chart: acm
chartVersion: 0.1.*
# Required for airgap -- set to your mirrored catalog source name
# overrides:
# - name: acm.mce_operator.source
# value: "cs-redhat-operator-index-v4-22"
vault:
name: vault
namespace: vault
project: vault
chart: hashicorp-vault
chartVersion: 0.1.*
annotations:
argocd.argoproj.io/sync-wave: "0"
secrets-operator:
name: openshift-external-secrets
namespace: external-secrets
project: external-secrets
chart: openshift-external-secrets
chartVersion: 0.0.*
annotations:
argocd.argoproj.io/sync-wave: "0"
trustee:
name: trustee
namespace: trustee-operator-system
project: trustee
chart: trustee
chartVersion: 0.10.*
annotations:
argocd.argoproj.io/sync-wave: "20"
extraValueFiles:
- '/overrides/values-trustee.yaml'
overrides:
# Enable attestation-gated secret delivery via KBS
- name: global.coco.secured
value: "true"
# TDX attestation — enables Intel TDX reference value verification in AS
- name: kbs.tdx.enabled
value: "true"
# GPU attestation — enables NVIDIA CC GPU reference value verification
- name: kbs.gpu.enabled
value: "true"
# Bare metal mode — uses firmware reference values (not peer-pod PCR measurements)
- name: kbs.baremetal.enabled
value: "true"
# Inject mirror-registry CA into KBS trust store (required for airgap image pulls)
- name: kbs.registryCa.enabled
value: "true"
# TDX DCAP collateral — offline attestation without Intel PCS network access.
# Collateral is collected via `make collect-dcap-collateral` and loaded into Vault.
# The file path below is where the AS container mounts the collateral from its ESO secret.
- name: kbs.tdx.collateralService
value: "file:///opt/confidential-containers/attestation-service/tdx/platform_collaterals.json"
- name: kbs.tdx.collateralMountPath
value: "/opt/confidential-containers/attestation-service/tdx"
- name: kbs.tdx.collateralFileName
value: "platform_collaterals.json"
storage:
name: storage
namespace: openshift-storage
project: hub
path: charts/hub/storage
annotations:
argocd.argoproj.io/sync-wave: "0"
baremetal:
name: baremetal
namespace: baremetal
project: hub
path: charts/all/baremetal
annotations:
argocd.argoproj.io/sync-wave: "10"
sandbox:
name: sandbox
namespace: openshift-sandboxed-containers-operator
project: sandbox
annotations:
argocd.argoproj.io/sync-wave: "10"
chart: sandboxed-containers
chartVersion: 0.2.*
overrides:
- name: enablePeerPods
value: "false"
intel-dcap:
name: intel-dcap
namespace: intel-dcap
project: hub
path: charts/all/intel-dcap
annotations:
argocd.argoproj.io/sync-wave: "20"
ignoreDifferences:
- group: deviceplugin.intel.com
kind: SgxDevicePlugin
name: sgxdeviceplugin-sample
jsonPointers:
- /spec
- group: trustedservices.intel.com
kind: TdxQuoteGenerationService
name: intel-tdx-dcap
jsonPointers:
- /spec
- /status
# KubeVirt confidential containers support (experimental)
# Deploys HyperConverged CR with TDX feature gate and SELinux MCO for QGS socket access.
# Requires Intel TDX hardware and CNV operator. Gated by chart-level values.
# Uncomment to enable:
# kubevirtconfidential:
# name: kubevirtconfidential
# namespace: openshift-cnv
# project: hub
# path: charts/all/kubevirtconfidential
# annotations:
# argocd.argoproj.io/sync-wave: "30"
# KubeVirt test VMs (experimental)
# Baseline and TDX-enabled RHEL9 VMs for validating confidential VM workloads.
# Requires kubevirtconfidential above and LVM storage. Gated by chart-level values.
# Uncomment to enable:
# kubevirtvm:
# name: kubevirtvm
# namespace: kubevirt-vms
# project: hub
# path: charts/all/kubevirtvm
# annotations:
# argocd.argoproj.io/sync-wave: "35"
# syncPolicy:
# automated:
# prune: true
# GPU apps disabled — depends on gpu-operator subscription (disabled above).
# nvidia-gpu:
# name: nvidia-gpu
# namespace: nvidia-gpu-operator
# project: hub
# path: charts/all/nvidia-gpu
# annotations:
# argocd.argoproj.io/sync-wave: "25"
# gpu-workload:
# name: gpu-workload
# namespace: gpu-workload
# project: workloads
# path: charts/coco-supported/gpu-workload
# annotations:
# argocd.argoproj.io/sync-wave: "30"
# syncPolicy:
# automated:
# prune: true
sandbox-policies:
name: sandbox-policies
namespace: openshift-sandboxed-containers-operator
project: sandbox
chart: sandboxed-policies
chartVersion: 0.2.*
annotations:
argocd.argoproj.io/sync-wave: "20"
hello-openshift:
name: hello-openshift
namespace: hello-openshift
project: workloads
path: charts/coco-supported/hello-openshift
annotations:
argocd.argoproj.io/sync-wave: "30"
# Required for airgap — CoCo guest VMs pull images directly, no IDMS/ITMS in the CVM.
# Uncomment and set MIRROR_REGISTRY_HOST to your mirror registry.
# overrides:
# - name: image
# value: "MIRROR_REGISTRY_HOST:8443/ubi9/httpd-24@sha256:68a91ff691092f455fea682330c499588747231c16516cd4f35aff821e6847f2"
syncPolicy:
automated:
prune: true
kbs-access-curl:
name: kbs-access-curl
namespace: kbs-access
project: workloads
path: charts/coco-supported/kbs-access-curl
annotations:
argocd.argoproj.io/sync-wave: "30"
# Required for airgap — CoCo guest VMs pull images directly, no IDMS/ITMS in the CVM.
# overrides:
# - name: image
# value: "MIRROR_REGISTRY_HOST:8443/ubi9/httpd-24@sha256:68a91ff691092f455fea682330c499588747231c16516cd4f35aff821e6847f2"
# - name: initImage
# value: "MIRROR_REGISTRY_HOST:8443/ubi9/ubi:latest"
syncPolicy:
automated:
prune: true
kbs-access-sealed:
name: kbs-access-sealed
namespace: kbs-access
project: workloads
path: charts/coco-supported/kbs-access-sealed
annotations:
argocd.argoproj.io/sync-wave: "30"
# Required for airgap — CoCo guest VMs pull images directly, no IDMS/ITMS in the CVM.
# overrides:
# - name: image
# value: "MIRROR_REGISTRY_HOST:8443/ubi9/httpd-24@sha256:68a91ff691092f455fea682330c499588747231c16516cd4f35aff821e6847f2"
syncPolicy:
automated:
prune: true
kyverno:
name: kyverno
namespace: kyverno
project: hub
path: charts/vendor/kyverno
annotations:
argocd.argoproj.io/sync-wave: "0"
syncPolicy:
automated: {}
retry:
limit: 20
syncOptions:
- ServerSideApply=true
- RespectIgnoreDifferences=true
ignoreDifferences:
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: deletingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: generatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: imagevalidatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: mutatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: namespaceddeletingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: namespacedgeneratingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: namespacedimagevalidatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: namespacedmutatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: namespacedvalidatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: policyexceptions.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
name: validatingpolicies.policies.kyverno.io
jsonPointers:
- /metadata/labels
- /metadata/annotations
extraValueFiles:
- '/overrides/values-kyverno.yaml'
overrides:
- name: backgroundController.resources.limits.memory
value: "512Mi"
- name: backgroundController.resources.requests.memory
value: "256Mi"
coco-kyverno-policies:
name: coco-kyverno-policies
namespace: openshift-sandboxed-containers-operator
project: sandbox
path: charts/all/coco-kyverno-policies
annotations:
argocd.argoproj.io/sync-wave: "20"
imperative:
# NOTE: We *must* use lists and not hashes. As hashes lose ordering once parsed by helm
# The default schedule is every 10 minutes: imperative.schedule
# Total timeout of all jobs is 1h: imperative.activeDeadlineSeconds
# imagePullPolicy is set to always: imperative.imagePullPolicy
# For additional overrides that apply to the jobs, please refer to
# https://validatedpatterns.io/imperative-actions/#additional-job-customizations
serviceAccountCreate: true
clusterRoleYaml:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
jobs:
- name: init-data-gzipper
playbook: ansible/init-data-gzipper.yaml
verbosity: -vvv
timeout: 3600
- name: reconcile-kataconfig-gpu
playbook: ansible/reconcile-kataconfig-gpu.yaml
verbosity: -vvv
timeout: 600