-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Set default container runtime to containerd #10370
Set default container runtime to containerd #10370
Conversation
Hi @bmelbourne. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1dab78d
to
15d87e5
Compare
This only changes the default for new clusters. It does not change anything for existing. I would think that you need a check for k8s version. We only support/test containerd as of k8s 1.18. I suspect we want the default to change only for 1.20+ clusters. |
I'm working on exactly that scenario and testing various cluster configs including Terraform to ensure the default container runtime remains as I pushed my initial commits somewhat early to the PR before completing testing of the final solution. |
Right now, it looks like we are setting defaults in two places. The one in |
The point of setting the container runtime in 2 places was to be able to change the default only for newly created clusters. That being said, I think getting this to ready is a good step and I think 1.20 is a good goal to change the default for newly created clusters. /ok-to-test |
It makes sense to perhaps to make the change only for new clusers, perhaps not. At some point we need to change the default for everyone anyway. You can have a look at |
I think for now it's ok to not think about k8s version. I think we will switch it on for all new clusters. kops/pkg/model/components/containerd.go Lines 55 to 61 in c86e509
|
My initial testing had been based on new code introduced in If users then choose to continue using |
f2582e6
to
dd1cc2b
Compare
af1675e
to
a639bef
Compare
a639bef
to
d35843a
Compare
05500e6
to
7e98674
Compare
/retest |
/test pull-kops-e2e-kubernetes-aws |
7e98674
to
17ba475
Compare
17ba475
to
e0ecd74
Compare
@bmelbourne after discussing a bit, decided to set the k8s version from integration tests to "1.20.0" and thought it was best to do it before this PR, to see changes. Also, the networking is set to "cni" to avoid extra customizations for that. |
That was good timing, I'm just in the process of rebasing the other |
Thanks! No worries, I can look at the code without the tests part too. |
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.
As promised, I made another pass over the PR. Looks pretty well, just small changes needed.
Please rebase and use the k8s versions and network settings that were updated in #10591. The changes to the integration tests should be smaller like this.
ac6b95b
to
632a23c
Compare
632a23c
to
337c9c4
Compare
I've completed the rebasing of the latest I've also updated |
This looks perfect now @bmelbourne. Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmelbourne, hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kops-e2e-k8s-containerd |
What this PR does / why we need it:
As Kubernetes will deprecate Docker runtime support from version 1.20 and will be removed in a future release (currently planned for the 1.22 release in late 2021), set the default container runtime to
containerd
from kOps 1.20.https://github.com/kubernetes/kubernetes/tree/master/CHANGELOG/CHANGELOG-1.20.md#deprecation
Which issue(s) this PR fixes
#10356
Special notes for your reviewer:
Merge this PR in to kOps 1.20 release milestone.