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

Get "cni plugin not initialized" when running node with gVisor on EKS #6844

Closed
liyaka opened this issue Nov 9, 2021 · 2 comments
Closed
Labels
type: bug Something isn't working

Comments

@liyaka
Copy link

liyaka commented Nov 9, 2021

Description

I created a VM built from the latest official AMI for EKS node (amazon-eks-node-1.20-v20211101-2021-11-01T08-17-15Z) and I run the steps from this tutorial and then created an AMI that i use to create nodes in my cluster.
The nodes come up but appear "Not Ready"
This is what I see in describe node:
runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized

Steps to reproduce

No response

runsc version

runsc version release-20211101.0
spec: 1.0.2

docker version (if using docker)

No response

uname

No response

kubectl (if using Kubernetes)

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T21:15:16Z", GoVersion:"go1.16.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.2-eks-06eac09", GitCommit:"5f6d83fe4cb7febb5f4f4e39b3b2b64ebbbe3e97", GitTreeState:"clean", BuildDate:"2021-09-13T14:20:15Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}

repo state (if built from source)

No response

runsc debug logs (if available)

No response

@liyaka liyaka added the type: bug Something isn't working label Nov 9, 2021
@kevinGC
Copy link
Collaborator

kevinGC commented Nov 18, 2021

Can you try with a newer version of gVisor? This may be #3301, which was fixed a couple weeks ago.

@liyaka
Copy link
Author

liyaka commented Nov 18, 2021

The problem was with flags passed to kubelet in order to run containerd.
it should be:
--container-runtime containerd
and that's it

@liyaka liyaka closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants