-
Notifications
You must be signed in to change notification settings - Fork 519
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
Add aws-k8s-1.20 variant with Kubernetes 1.20 support #1437
Conversation
- case "${platform}" in | ||
- "linux/arm") | ||
- export CGO_ENABLED=1 | ||
- export CC=${KUBE_LINUX_ARM_CC:-arm-linux-gnueabihf-gcc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. In previous versions, these were hardcoded, so it made sense to unilaterally override them with the -bottlerocket-
versions we need. Is there any reason we'd want to allow the $KUBE_LINUX_ARM_CC
-type overrides in our replacement code? I don't have background on these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcressey can you take a look at this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream is now a bit closer to what we want, which is to always use our known cross compilers. We're still missing a way to express "always cross-compile, even if we're on linux/amd64". I expect we could come up with a patch to bridge what's left.
For now, your port of the patch looks good.
Push above rebases onto develop. |
Push above addresses majority of @tjkirch comments.
For #1465, we decided offline that this will be the first variant where we introduce |
05c123d
to
18e75f4
Compare
Push above applies changes from #1408 to the |
Push above adds the missing Cargo.lock changes. |
Push above applies changes from #1494 to the aws-k8s-1.20 variant. |
Push above adopts #1295 for aws-k8s-1.20 |
Push above updates the kubernetes-1.20 package to Kubernetes v1.20.6 |
Push above addresses @tjkirch 's comments.
I ran sonobuoy conformance testing for kubelet v1.20.6 and everything still passed. The testing description in the PR is up to date. |
Push above adds a commit that adds I've built and image and verified that it works:
The host is running with a unified cgroup hierarchy (cgroupv2)
kubelet is running fine, the node joins the cluser fine, can run pods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👢
Push above integrates changes from #1513 |
Constrains ephemeral ports for k8s-1.20 variants
Adds `systemd.unified_cgroup_hierarchy=1` to the kernel parameters for the aws-k8s-1.20 variant.
Push above rebases onto current develop to be on top of the changes from #1513. Tested things they still work. |
Issue number:
#1429
#1386
Description of changes:
For reference, the addition of 1.19 was in #1256.
Version of kubelet packaged: v1.20.6
Regenerated the
0001-always-set-relevant-variables-for-cross-compiling.patch
patch.Added license clarification for "github.com/storageos/go-api"
Testing done:
Pods run OK
Conformance testing with 1.20 control plane and x86_64 aws-k8s-1.20 nodes - all passed
Conformance testing with 1.20 control plane and aarch64 aws-k8s-1.20 nodes - all passed
Confirm the EBS CSI driver still works.
Check kubelet logs and system logs in general, compared it with the aws-k8s-1.19 variant kubelet logs and found no abnormalities.
Confirmed that the ephemeral port range has been constrained:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.