LCM Agent¶
LCM Agent handles a single machine that belongs to a management or
MOSK cluster. It runs on the machine operating system but
communicates with apiserver of the management cluster. LCM Agent is
deployed as a systemd unit using cloud-init. LCM Agent has a built-in
self-upgrade mechanism.
LCM Agent monitors the spec of a particular LCMMachine object to
reconcile the machine state with the object StateItems and update the
LCMMachine status`` accordingly. The actions that LCM Agent performs while
handling StateItems are as follows:
Download configuration files
Run shell commands
Run Ansible playbooks in headless mode
LCM Agent provides the IP address and host name of the machine for the
status parameter of LCMMachine.