Enabling Controller-managed Attachment and Detachment

    Controller-managed attachment and detachment has the following benefits:

    If a node has set the annotation on itself, then its attach and detach operations are being managed by the controller. The controller will automatically inspect all nodes for this annotation and act according to whether it is present or not. Therefore, you may inspect the node for this annotation to determine if it has enabled controller-managed attach and detach.

    To further ensure that the node is opting for controller-managed attachment and detachment, its logs can be searched for the following line:

    To check from the controller’s end that it is managing a particular node’s attach and detach operations, the logging level must first be set to at least 4. Then, the following line should be found:

    For information on how to view logs and configure logging levels, see Configuring Logging Levels.

    Once a node is configured, it must be restarted for the setting to take effect.