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

openshift-hyperkube RPM is too big

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Normal
    • 4.16.0
    • 4.13, 4.12, 4.14, 4.15, 4.16
    • Release
    • None
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      It was notices that the openshift-hyperkube RPM which is primarilly, perhaps exclusively, used to install the kubelet in RHCOS or other environments included kube-apiserver, kube-controller-manager, and kube-scheduler binaries. Those binaries are all built and used via container images, which as far as I can tell don't make use of the RPM.    

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

      4.12 - 4.16

      How reproducible:

      100%

      Steps to Reproduce:

          1. rpm -ql openshift-hyperkube on any node
          2.
          3.
          

      Actual results:

      # rpm -ql openshift-hyperkube
      /usr/bin/hyperkube
      /usr/bin/kube-apiserver
      /usr/bin/kube-controller-manager
      /usr/bin/kube-scheduler
      /usr/bin/kubelet
      /usr/bin/kubensenter
      
      # ls -lah /usr/bin/kube-apiserver /usr/bin/kube-controller-manager /usr/bin/kube-scheduler /usr/bin/hyperkube /usr/bin/kubensenter /usr/bin/kubelet
      -rwxr-xr-x. 2 root root  945 Jan  1  1970 /usr/bin/hyperkube
      -rwxr-xr-x. 2 root root 129M Jan  1  1970 /usr/bin/kube-apiserver
      -rwxr-xr-x. 2 root root 114M Jan  1  1970 /usr/bin/kube-controller-manager
      -rwxr-xr-x. 2 root root  54M Jan  1  1970 /usr/bin/kube-scheduler
      -rwxr-xr-x. 2 root root 105M Jan  1  1970 /usr/bin/kubelet
      -rwxr-xr-x. 2 root root 3.5K Jan  1  1970 /usr/bin/kubensenter

      Expected results:

      Just the kubelet and deps on the host OS, that's all that's necessary

      Additional info:

      My proposed change would be for people that cared about making this slim to install `openshift-hyperkube-kubelet` instead.

      Attachments

        Activity

          People

            rhn-support-sdodson Scott Dodson
            rhn-support-sdodson Scott Dodson
            Sunil Choudhary Sunil Choudhary
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: