Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable cgroupns in kind/capd #2405

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

jaxesn
Copy link
Member

@jaxesn jaxesn commented Aug 19, 2023

Issue #, if available:

Description of changes:

Not totally sure why but using cgroupns=private on AL2 nodes, this did not seem to be an issue on Ubuntu 20.04 nodes which is also cgroup v1, seems to cause issues creating the containers instead the kind node image.

Kind 0.20 does call out that using cgroupns=default with cgroupv1 is deprecated and will eventually be removed. The code to handle this case has been in the entrypoint.sh script for quite some time and we can continue to maintain this in our patches if necessary.

Newer distro, Ubuntu 22.04 and AL23, use cgroup v2 which are not affected by this change since docker already defaults to cgroupns=private for cgroup v2 hosts.

I confirmed this issue exist on an AL2 using the upstream kind binary and upstream kind node image as well. Using this patched version of kind, I was able to create a cluster with both the upstream image and the eks-a al23 based node image.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from jaxesn. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 19, 2023
@jaxesn jaxesn force-pushed the jgw/disable-cgroupns-private-kind branch from 9136071 to 6acd857 Compare August 19, 2023 14:44
@jaxesn jaxesn force-pushed the jgw/disable-cgroupns-private-kind branch from 6acd857 to dce8b94 Compare August 19, 2023 14:51
@jaxesn
Copy link
Member Author

jaxesn commented Aug 19, 2023

Merging to get a build to test, will revert if needed.

@jaxesn jaxesn merged commit 52b3738 into aws:main Aug 19, 2023
jaxesn added a commit to jaxesn/eks-anywhere-build-tooling that referenced this pull request Aug 21, 2023
eks-distro-bot pushed a commit that referenced this pull request Aug 21, 2023
* Bump cluster-api, cert-manager and kind to latest versions (#2402)

* Latest eks-d versions (#2401)

* disable cgroupns in kind/capd (#2405)

* revert runc and containerd in kind image (#2406)

* revert runc and containerd in kind image

* Update CHECKSUMS

* do not lock containerd version (#2412)

* do not lock containerd version

* Update CHECKSUMS

---------

Co-authored-by: Abhay Krishna <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants