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

Add support for Kubenet with containerd #9104

Merged
merged 2 commits into from
May 22, 2020

Conversation

hakman
Copy link
Member

@hakman hakman commented May 9, 2020

Docker generates the a conflist file for Kubenet when needed.
containerd has a different approach:
https://github.com/containerd/cri/blob/master/docs/config.md#cni-config-template

At some point, Kubenet will migrate to CNI and this workaround can be removed. Until then, this is the default in Kops and should be added, if possible.
kubernetes/kubernetes#38890

CNI config template is based on:
https://github.com/containerd/cri/blob/master/hack/install/install-cni-config.sh

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 9, 2020
@hakman hakman changed the title Add support for Kubenet with containerd [WIP] Add support for Kubenet with containerd May 9, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 9, 2020
@hakman hakman force-pushed the containerd-kubenet branch 5 times, most recently from 89637b0 to b49e859 Compare May 10, 2020 10:12
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 10, 2020
@hakman hakman force-pushed the containerd-kubenet branch 2 times, most recently from ca51a1c to 217d39a Compare May 10, 2020 11:56
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 10, 2020
@hakman hakman force-pushed the containerd-kubenet branch 7 times, most recently from 9548546 to 6004786 Compare May 11, 2020 02:48
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 11, 2020
@hakman hakman force-pushed the containerd-kubenet branch 3 times, most recently from 5e67e2a to 8cfd8cc Compare May 12, 2020 05:27
@hakman hakman force-pushed the containerd-kubenet branch 4 times, most recently from 4bd79ac to abbf60a Compare May 12, 2020 11:58
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 12, 2020
@hakman hakman force-pushed the containerd-kubenet branch from abbf60a to d308b6f Compare May 12, 2020 12:57
@hakman hakman changed the title [WIP] Add support for Kubenet with containerd Add support for Kubenet with containerd May 12, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 12, 2020
@hakman hakman force-pushed the containerd-kubenet branch from d308b6f to e608cd5 Compare May 12, 2020 14:21
@hakman
Copy link
Member Author

hakman commented May 12, 2020

@hakman
Copy link
Member Author

hakman commented May 19, 2020

@olemarkus maybe you can have a look at this. Seems somehow related to the work you are doing in CNI plugins reorg. Thanks!

@olemarkus
Copy link
Member

Looks good. Just generally look use components.UsesKubenet as this will then also work with other networking providers that uses kubenet, GCE in particular.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 19, 2020
@hakman
Copy link
Member Author

hakman commented May 19, 2020

Thanks @olemarkus hopefully at some point this will be simplified.

@hakman hakman force-pushed the containerd-kubenet branch from 9faa862 to 9d666c7 Compare May 19, 2020 17:43
@olemarkus
Copy link
Member

/retest

@olemarkus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 19, 2020
@hakman
Copy link
Member Author

hakman commented May 20, 2020

/retest

@rifelpet
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman, rifelpet

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 22, 2020
@k8s-ci-robot k8s-ci-robot merged commit 2c899d8 into kubernetes:master May 22, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone May 22, 2020
@hakman hakman deleted the containerd-kubenet branch June 2, 2020 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants