-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node-installer: support bare-metal platforms
This adds support for the K3s- / RKE2-based bare-metal TDX deployment platforms in the node-installer. Depending on which platform is provided to the node-installer command line, different units are restarted, configs are written, etc. This does not yet add support of writing the appropriate commandline in the node-installer deployment, as this will be done in a follow-up PR. Thus, for now, to keep main healthy and deploy-able, we default to AKS-CLH-SNP in the node-installer if no platform is specified.
- Loading branch information
Showing
6 changed files
with
500 additions
and
150 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
node-installer/internal/constants/configuration-qemu-tdx.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Minimized list, inactive options removed. | ||
# upstream source: https://github.com/kata-containers/kata-containers/blob/0f2a4d202e90b39b50074725b2cfe9c3088a4e20/src/runtime/config/configuration-qemu-tdx.toml.in | ||
[hypervisor.qemu] | ||
path = "/usr/bin/qemu-system-x86_64" | ||
kernel = "/opt/kata/share/kata-containers/vmlinuz-confidential.container" | ||
image = "/opt/kata/share/kata-containers/kata-containers-confidential.img" | ||
machine_type = "q35" | ||
tdx_quote_generation_service_socket_port = 4050 | ||
rootfs_type="erofs" | ||
confidential_guest = true | ||
enable_annotations = ["enable_iommu", "virtio_fs_extra_args", "kernel_params", "default_vcpus", "default_memory"] | ||
valid_hypervisor_paths = ["/usr/bin/qemu-system-x86_64"] | ||
kernel_params = "" | ||
firmware = "/usr/share/ovmf/OVMF.fd" | ||
firmware_volume = "" | ||
machine_accelerators="" | ||
cpu_features="-vmx-rdseed-exit,pmu=off" | ||
default_vcpus = 1 | ||
default_maxvcpus = 0 | ||
default_bridges = 1 | ||
default_memory = 2048 | ||
default_maxmemory = 0 | ||
disable_block_device_use = false | ||
shared_fs = "virtio-9p" | ||
virtio_fs_daemon = "/opt/kata/libexec/virtiofsd" | ||
valid_virtio_fs_daemon_paths = ["/opt/kata/libexec/virtiofsd"] | ||
virtio_fs_cache_size = 0 | ||
virtio_fs_queue_size = 1024 | ||
virtio_fs_extra_args = ["--thread-pool-size=1", "--announce-submounts"] | ||
virtio_fs_cache = "auto" | ||
block_device_driver = "virtio-scsi" | ||
block_device_aio = "io_uring" | ||
enable_iothreads = false | ||
enable_vhost_user_store = false | ||
vhost_user_store_path = "/var/run/kata-containers/vhost-user" | ||
valid_vhost_user_store_paths = ["/var/run/kata-containers/vhost-user"] | ||
vhost_user_reconnect_timeout_sec = 0 | ||
valid_file_mem_backends = [""] | ||
pflashes = [] | ||
enable_debug = false | ||
valid_entropy_sources = ["/dev/urandom","/dev/random",""] | ||
disable_selinux=false | ||
disable_guest_selinux=true | ||
|
||
[agent.kata] | ||
enable_debug = false | ||
kernel_modules=[] | ||
debug_console_enabled = false | ||
dial_timeout = 60 | ||
|
||
[runtime] | ||
enable_debug = false | ||
internetworking_model="tcfilter" | ||
disable_guest_seccomp=true | ||
sandbox_cgroup_only=false | ||
static_sandbox_resource_mgmt=true | ||
sandbox_bind_mounts=[] | ||
vfio_mode="guest-kernel" | ||
disable_guest_empty_dir=false | ||
experimental=[] | ||
create_container_timeout = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.