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

KubeletConfig in the bootstrap mode didn't apply system reserved values

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 4.12.0
    • Node / Kubelet
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      While testing the changes for https://github.com/openshift/machine-config-operator/pull/3375, I am observing that the kubelet config isn't applying the system reserved values in bootstrap mode. 

      I created a manifest folder and dropped following KubeletConfig

      apiVersion: machineconfiguration.openshift.io/v1
      kind: KubeletConfig
      metadata:
        name: system-reserved-config2
      spec:
        machineConfigPoolSelector:
          matchLabels:
            pools.operator.machineconfiguration.openshift.io/worker: ""
        kubeletConfig:
          systemReserved:
            cpu: 500m
            memory: 500Mi
            ephemeral-storage: 15Gi

      However, the kubelet came up with 1Gi system reserved memory (instead of 500Mi as specified in the KubeletConfig above)

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

       

      How reproducible:

      Always

      Steps to Reproduce:

      1. openshift-installer create manifests
      2. drop the above KubeletConfig in that manifests folder
      3. create the cluster
      

      Actual results:

      Kubelet came up with the system reserved memory value of 1Gi, which is a default value in absence of the user specified value. With the supplied KubeletConfig it should have come up with 500Mi system reserved memory.

       --system-reserved=cpu=500m,memory=1Gi,ephemeral-storage=1Gi

      Expected results:

       --system-reserved=cpu=500m,memory=500Mi,ephemeral-storage=1Gi

      Additional info:

      Should we re-test the changes from https://github.com/openshift/machine-config-operator/pull/2547/ ?

       

              qiwan233 Qi Wang
              harpatil@redhat.com Harshal Patil
              None
              None
              Sunil Choudhary Sunil Choudhary
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: