Place a node in maintenance mode

Contributors amgrissino

When you need to perform host maintenance or package upgrades, you should place the node in maintenance mode.

Note The node must be part of the Astra Data Store cluster.

When a node is in maintenance mode, you cannot add a node.

Steps
  1. Display the node details.

     kubectl get nodes
  2. Get details of volumes:

     kubectl get astradsvolumes -n astrads-system -o wide
    NAME      SIZE  IP              CLUSTER          EXPORTPOLICY     CREATED
    nfsvol1   102Gi 10.111.111.111  ftap-astra-012   exppol1    true
    nfsvol10  102Gi 10.111.111.112  ftap-astra-012   exppol10   true
    nfsvol11  102Gi 10.111.111.113  ftap-astra-012   exppol11   true
  3. Enable maintenance mode:

     kubectl astrads maintenance list
    NAME    NODE NAME       IN MAINTENANCE  MAINTENANCE STATE       MAINTENANCE VARIANT
    
     kubectl astrads maintenance create node4 --node-name="nhcitjj1525" --variant=Node
    Maintenance mode astrads-system/node4 created
    
     kubectl astrads nodes list
    NODE NAME       NODE STATUS     CLUSTER NAME
    nhcitjj1525     Added           ftap-astra-012
    nhcitjj1527     Added           ftap-astra-012
    nhcitjj1526     Added           ftap-astra-012
    nhcitjj1528     Added           ftap-astra-012
    ...
    
     kubectl astrads maintenance list
    NAME    NODE NAME       IN MAINTENANCE  MAINTENANCE STATE       MAINTENANCE VARIANT
    node4   nhcitjj1525     true            ReadyForMaintenance     Node

    The In Maintenance mode starts as "False" and changes to "True" and the Maintenance state changes from "Preparing for Maintenance" to "Ready for Maintenance."

For more information