Add support for LXD server and VM composer#176
Open
AmitSahastra wants to merge 12 commits intospectro-masterfrom
Open
Add support for LXD server and VM composer#176AmitSahastra wants to merge 12 commits intospectro-masterfrom
AmitSahastra wants to merge 12 commits intospectro-masterfrom
Conversation
…dd LXD documentation
- Support for LXD init via daemonset - Launch daemonset from capmaas-controller - Register CP node as LXD host from capmaas-controller
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LXD Initializer DaemonSet for Secure VM Host Provisioning
Overview
This PR introduces a Kubernetes DaemonSet approach for LXD initialization and VM host registration. This approach addresses a critical reviewer comment about direct LXD socket access from the CAPMaaS controller and improves security and scalability in distributed environments.
Key Changes
lxd-initializerDaemonSet that runs on each node to initialize LXD and register the node as a VM host with MAASpkg/maas/lxd/host.goto use MAAS API exclusively for VM host operationspkg/maas/vmhostspackage with comprehensive MAAS API client for VM host managementArchitecture
The new architecture separates concerns:
This approach complements the existing LXD provisioning work by providing a secure and scalable method for LXD initialization while maintaining the comprehensive VM provisioning capabilities.
Benefits
Testing
Documentation
lxd-initializer/README.mdwith setup and usage instructionslxd-initializer/integration.mdwith integration guidelxd-initializer/SUMMARY.mdwith architectural overview