kata-deploy: Expose /host to the daemon-set

We'll need to have access to the host os-release file (either under
`/etc/os-release` or under `/usr/lib/os-release`), and the simplest
approach that comes to my mind to do is doing what a debug pod would do,
mounting `/` as `/host` and then allowing us to have access to those
files, and then corectly set the TDX specific QEMU and OVMF (TDVF) paths
for the tdx available configurations.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2024-05-08 13:35:48 +02:00
parent f2d40da8e4
commit 84b94dc2b1
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -58,6 +58,8 @@ spec:
mountPath: /opt/kata/
- name: local-bin
mountPath: /usr/local/bin/
- name: host
mountPath: /host/
volumes:
- name: crio-conf
hostPath:
@ -72,6 +74,9 @@ spec:
- name: local-bin
hostPath:
path: /usr/local/bin/
- name: host
hostPath:
path: /
updateStrategy:
rollingUpdate:
maxUnavailable: 1