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

Do not include the default CNI config by default #3441

Merged
merged 2 commits into from
Jan 16, 2019

Conversation

brb
Copy link
Contributor

@brb brb commented Dec 11, 2018

Previously, minikube has been shipped with the default CNI config (/etc/cni/net.d/k8s.conf) in its rootfs. This complicated a lot when using a custom CNI plugin, as the default config was picked by kubelet before the custom CNI plugin has installed its own CNI config. So, the end result was that some Pods were attached to a network defined in the default config, and some got managed by the custom plugin.

This PR:

  • Introduces the flag --enable-default-cni to minikube start to trigger the provisioning of the default CNI config.
  • Removes no longer used /usr/libexec/kubernetes/kubelet-plugins/net/exec/k8s.conf.

If this PR gets merged, https://kubernetes.io/docs/setup/minikube/#alternative-container-runtimes needs to be updated as well.

Fixes #2907.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 11, 2018
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: brb
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: jimmidyson

If they are not already assigned, you can assign the PR to them by writing /assign @jimmidyson in a comment when ready.

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

@brb brb force-pushed the 2907-no-cni-conf-by-default branch from b12f6ee to 89f2607 Compare December 17, 2018 09:12
@tstromberg
Copy link
Contributor

@minikube-bot OK to test

@brb
Copy link
Contributor Author

brb commented Dec 19, 2018

The CI failures seem to be unrelated to my changes.

@brb brb force-pushed the 2907-no-cni-conf-by-default branch from 89f2607 to 1252ad9 Compare January 3, 2019 08:23
brb added 2 commits January 3, 2019 09:23
Previously, minikube has been shipped with the default CNI config
(/etc/cni/net.d/k8s.conf) in its rootfs. This complicated a lot
when using a custom CNI plugin, as the default config was picked
by kubelet before the custom CNI plugin has installed its own CNI
config. So, the end result was that some Pods were attached to a
network defined in the default config, and some got managed by
the custom plugin.

This commit introduces the flag "--enable-default-cni" to
"minikube start" to trigger the provisioning of the default CNI
config.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
As per kubernetes/kubernetes#32151, kubelet
doesn't search for CNI configs in /usr/libexec/kubernetes/kubelet-plugins/net/exec/
by default anymore.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
@brb
Copy link
Contributor Author

brb commented Jan 3, 2019

Fixed the merge conflicts.

@tstromberg tstromberg merged commit 3aa8367 into kubernetes:master Jan 16, 2019
brb added a commit to brb/website that referenced this pull request Jan 24, 2019
Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube with
an alternative container runtime.

This commit
brb added a commit to brb/website that referenced this pull request Jan 24, 2019
Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube.
brb added a commit to brb/website that referenced this pull request Jan 24, 2019
Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube.
brb added a commit to brb/kubevirt.github.io that referenced this pull request Jan 24, 2019
Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube.
k8s-ci-robot pushed a commit to kubernetes/website that referenced this pull request Jan 31, 2019
Since minikube v0.33.0 the default CNI config is not being provisioned
by default (kubernetes/minikube#3441). Therefore,
we need to pass `--enable-default-cni` when starting minikube.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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