Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-9019

DO280-387: Draining a Node

XMLWordPrintable

    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)
      Workaround: For any "oc" command covered in class, general guidance should be to use the associated "--help" option for further nuanced usage.

      Description: In 2nd GE of Chapter 7, students drain one of the nodes.

      If any pod with ephemeral storage is on the node, the standard "oc adm drain" command will fail.  A good example of this is a "build" pod.  If a build pod happens to be on the node being drained, the "drain will fail". 

      The GE now uses the "--delete-local-data" option, to go ahead and forcefully removed pods that are utilizing ephemeral storage.  This enables the GE to work for students, but the option is not discussed in the SG. 

       

      Also- I believe in OCP 3.9 the 'oc adm drain' command will mark a node as 'unschedulable'.  It's not necessary (but it still may be a good practice) to label the node as 'unschedulable' before draining it.

       

       

            gls-curriculum-ocp-core@redhat.com PTL - OCP Platform Team
            rht-dkolepp Daniel Kolepp (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: