Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Move to unified cgroupv2 hierarchy and upgrade docker to 20.10 #931

Merged
merged 16 commits into from
Aug 12, 2021
Merged

Move to unified cgroupv2 hierarchy and upgrade docker to 20.10 #931

merged 16 commits into from
Aug 12, 2021

Commits on Aug 12, 2021

  1. sys-process/tini: Sync with Gentoo upstream

    For tini-0.19. Upstream commit 2e10a957da8a8a93c1f5d82011e3f6692f7b765c.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    450c5ae View commit details
    Browse the repository at this point in the history
  2. sys-process/tini: Apply Flatcar patches

    We use a custom build system to remove the cmake dependency and hardcode
    relevant configuration.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    Flatcar Buildbot authored and jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    3497628 View commit details
    Browse the repository at this point in the history
  3. app-emulation/docker-cli: Import from Gentoo

    Docker upstream split the cli component into a separate repo, so there is
    a separate ebuild that builds the docker utility. This is a prerequisite
    of the update of docker to 20.10.
    
    This is an import from portage commit 69d01a4273a556b1205a7a575cb3811ab7e2443d.
    
    Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    0fa6f0e View commit details
    Browse the repository at this point in the history
  4. app-emulation/docker-cli: Apply Flatcar patches

    We use coreos-go* eclass so that we can override several environment
    variables and build with the same go version as docker upstream. These
    changes are modeled after what was previously done in app-emulation/docker,
    the cli ebuild has only been split out since v20.10.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    d50a1c7 View commit details
    Browse the repository at this point in the history
  5. app-emulation/docker-proxy: Freeze version 0.8.0_p20180709

    This is the version used by docker-19.03. We will be updating the live
    ebuild to build docker 20.10 dependencies.
    
    Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    758f8f5 View commit details
    Browse the repository at this point in the history
  6. app-emulation/docker-proxy: Update to 0.8.0_p20210525

    This is the version needed by docker 20.10.7. ROADMAP.md doesn't exist so it
    has been removed from src_install.
    
    Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    4022df9 View commit details
    Browse the repository at this point in the history
  7. app-emulation/docker: Sync from Gentoo

    For update to docker-20.10.7.
    
    gentoo/portage commit 0ed05ce0a8f0d1c3dfa6151e7ebb25b67c4aae16
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    854a161 View commit details
    Browse the repository at this point in the history
  8. app-emulation/docker: Apply Flatcar patches

    The patches do the following:
    
    * install flatcar specific wrappers and systemd config
    * force some USE flags to default on
    * allow injecting CFLAGS/LDFLAGS so that torcx can work
    * force building with go1.13 (like upstream does) - this won't be
      necessary next time because docker master already uses go1.16
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    2cf4bb3 View commit details
    Browse the repository at this point in the history
  9. app-torcx/docker: Add a Docker 20.10 torcx image

    Compared to previous torcx images the docker-cli package is a separate
    package, following upstream Docker repo layout changes.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    4175d5f View commit details
    Browse the repository at this point in the history
  10. coreos-base/flatcar-eks: update supported kubernetes versions for cgr…

    …oupv2
    
    We are switching flatcar to cgroupv2 which is support by docker 20.10 and
    kubernetes 1.19. This requires setting the systemd cgroup driver in the kubelet
    config.
    
    Due to the unified cgroup hierarchy, kubernetes <1.19 will not work so
    remove all older versions.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    f0da7f8 View commit details
    Browse the repository at this point in the history
  11. .github: Adapt docker-release-main action to Docker 20

    The upstream docker repository location has changed to docker/docker.
    Additionally, the cli component has been split out which which requires
    fetching two hashes and updating two ebuilds. We also took the chance to
    align the ebuild with gentoo's, which means there are is no more live ebuild
    and no symlink.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    7cfa674 View commit details
    Browse the repository at this point in the history
  12. app-torcx/docker: Remove torcx packages for older docker versions

    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    f1520d3 View commit details
    Browse the repository at this point in the history
  13. sys-apps/systemd: Switch to unified cgroup hierarchy

    Now that Docker has been updated to 20.10, we can use cgroupv2 so have
    systemd mount the unified cgroup hierarchy by default. Other ways of
    achieving the same would have been to pass 'systemd.unified_cgroup_hierarchy=1'
    on the kernel cmdline, but this way the change propagates nicely to all
    OEM consumers.
    
    Signed-off-by: Jeremi Piotrowski <jeremi.piotrowski@gmail.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    c02ec4e View commit details
    Browse the repository at this point in the history
  14. coreos-base/update_engine: add postinstall hook to stay on cgroupv1

    This pulls in flatcar/update_engine#13
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    f8eb3c0 View commit details
    Browse the repository at this point in the history
  15. coreos-base/coreos-init: add motd warning when cgroupv1 is found

    This pulls in flatcar/init#44
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    ebab5a5 View commit details
    Browse the repository at this point in the history
  16. app-emulation/containerd: add config file for use during migration

    The SystemdCgroup=true setting is incompatible with kubelet
    cgroupDriver: cgroupfs. So to prevent kube clusters from failing, we
    will be freezing a nodes config.toml during an update. For that purpose,
    we install a second configuration file that can then be selected using a
    systemd drop-in unit.
    
    Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
    jepio committed Aug 12, 2021
    Configuration menu
    Copy the full SHA
    80ea7e7 View commit details
    Browse the repository at this point in the history