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

start --network-plugin=cni: The cni flag doesn't seem to have any effect in kubelet. #2828

Closed
aanm opened this issue May 21, 2018 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. os/linux

Comments

@aanm
Copy link

aanm commented May 21, 2018

Please provide the following details:

Environment:

  • Minikube version (use minikube version):
    v0.26.1 (v.0.27.0 seems to suffer from the same issue)

  • OS (e.g. from /etc/os-release): Fedora 27 (Twenty Seven) x86_64

  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): virtualbox

  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): iso/minikube-v0.26.0.iso

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):
Run minikube with minikube start --network-plugin=cni

The cni flag doesn't seem to have any effect in kubelet.

Output of minikube logs (if applicable):

Anything else do we need to know:

this seems to work minikube start --network-plugin=cni --extra-config=kubelet.network-plugin=cni

@anitgandhi
Copy link

I'm seeing the same thing with minikube start --network-plugin=cni --extra-config=kubelet.network-plugin=cni --vm-driver=none , Ubuntu 17.10, minikube v0.28

An excerpt from journalctl -xfu kubelet:

Unable to update cni config: No networks found in /etc/cni/net.d

I don't see anything in /opt/cni/bin either

@aanm
Copy link
Author

aanm commented Jul 11, 2018

@anitgandhi you need to install a cni plugin after minikube has started.

@anitgandhi
Copy link

Ah. I guess mistakenly assumed at least the loopback plugin would have come with the image. I ended up using kubeadm directly anyway and got the CNI I wanted (cilium) up and running anyway, so I'm all set. Thanks @aanm !

@tstromberg tstromberg added the kind/bug Categorizes issue or PR as related to a bug. label Sep 19, 2018
@tstromberg tstromberg changed the title minikube start --network-plugin=cni does not work start --network-plugin=cni: The cni flag doesn't seem to have any effect in kubelet. Sep 19, 2018
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 18, 2018
@aanm
Copy link
Author

aanm commented Dec 21, 2018

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. os/linux
Projects
None yet
Development

No branches or pull requests

5 participants