Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-48047

As per the document it does not states that "evictionPressureTransitionPeriod configuration" cannot be set to '0s'.

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 2
    • Informational
    • None
    • None
    • None
    • None
    • OSDOCS Sprint 266
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      In the below mentioned yaml 
      apiVersion: machineconfiguration.openshift.io/v1
      kind: KubeletConfig
      metadata:
        name: worker-kubeconfig 
      spec:
        machineConfigPoolSelector:
          matchLabels:
            pools.operator.machineconfiguration.openshift.io/worker: "" 
        kubeletConfig:
          evictionSoft: 
            memory.available: "500Mi" 
            nodefs.available: "10%"
            nodefs.inodesFree: "5%"
            imagefs.available: "15%"
            imagefs.inodesFree: "10%"
          evictionSoftGracePeriod:  
            memory.available: "1m30s"
            nodefs.available: "1m30s"
            nodefs.inodesFree: "1m30s"
            imagefs.available: "1m30s"
            imagefs.inodesFree: "1m30s"
          evictionHard: 
            memory.available: "200Mi"
            nodefs.available: "5%"
            nodefs.inodesFree: "4%"
            imagefs.available: "10%"
            imagefs.inodesFree: "5%"
          evictionPressureTransitionPeriod: 0s 
          imageMinimumGCAge: 5m 
          imageGCHighThresholdPercent: 80 
          imageGCLowThresholdPercent: 75 
      #...
      Note:
      Regarding the evictionPressureTransitionPeriod configuration being set to 0s and instead defaulting to 5m0s is likely related to a few internal Kubernetes settings and constraints.
      In Kubernetes, the evictionPressureTransitionPeriod setting specifies how long the kubelet should wait before initiating eviction pressure after a condition like memory or disk pressure is triggered. It is expected to have a meaningful value to allow the kubelet to stabilize resources before starting eviction.
      When you set evictionPressureTransitionPeriod to 0s, Kubernetes might interpret this as an invalid configuration since 0s could potentially imply "no waiting time," which doesn't align with how eviction processes are supposed to work. Kubernetes, instead, likely reverts to the default value (5m0s) to maintain a stable operational behavior.
      
      
      Please refer the link:[https://docs.openshift.com/container-platform/4.14/nodes/nodes/nodes-nodes-garbage-collection.html] 

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              mburke@redhat.com Michael Burke
              rhn-support-anehra Abhilasha Nehra
              None
              None
              Cameron Meadors Cameron Meadors
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: