-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Missing cniVersion in CNI plugin configuration #1173
Comments
The configuration schema version is required to ensure compatibility. Some implementations (CRI-O) require the field set. Closes flannel-io#1173.
The configuration schema version is required to ensure compatibility. Some implementations (CRI-O) require the field set. Closes flannel-io#1173.
To get flannel network working with crio, cniVersion is required in the flannel cni configuration. "cniVersion": "0.2.0", I changed the PR to use CNI version 0.2.0 instead of 0.3.1 to preserve backward-compatibility (at least down to Kubernetes 1.11 that uses CNI 0.6.0 with schema version 0.2.0) since the older CNI schema is still supported by current implementations but not the other way around. See issue: flannel-io/flannel#1173
I am using this patch (like #1174) for a while now successfully with CRI-O. |
+1 |
It appears to be required now: flannel-io/flannel#1173
I just ran into this issue today on AWS EKS. Any ideas how I can fix it? |
The fix from PR #1174 is to add the |
@mgoltzsche so does this mean that this is a problem with AWS EKS? I don't manage the master configuration with EKS. |
You can verify that the CNI configuration is correct within your cluster using I have no experience with EKS. If AWS installed flannel and the
|
@mgoltzsche thanks so much for the help. Surprisingly no Flannel cfg???
|
oh, maybe i made a mistake (I don't have a cluster at hand) or it is a custom configuration and/or a different namespace. Maybe you find it by search for all ConfigMaps within your cluster using |
No results. Maybe I'm not running Flannel?
|
seems so ;) |
So, then any idea the reason I am getting:
|
so whatever networking component you're using on EKS provides a CNI configuration file that is not supported anymore by the CNI runtime that is installed on the nodes. |
Updating my Kubernetes worker nodes to the latest AWS EKS version 1.19 AMI and then rebuilding the worker nodes fixed the issue. So, yup gonna assume the problem was hardcoded into the EKS 1.19 AMI I was using previously. |
The CNI plugin configuration in the configmap in
./Documentation/kube-flannel.yml
(and others) does not specify its schema version (cniVersion
field). However to ensure compatibility the schema version should be specified.Using Flannel 0.11.0 on Kubernetes 1.15.3 and CRI-O 1.15.0 the latter logged the following error on pod deletion which may have caused more errors:
Expected Behavior
cniVersion
should be specified.Current Behavior
cniVersion
is not specified which causes an error in CRI-O.Possible Solution
Specify
cniVersion
in flannel CNI plugin configuration.Steps to Reproduce (for bugs)
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.11.0/Documentation/kube-flannel.yml
journalctl -u crio -f
Context
I always get this error message in CRI-O after a while when flannel is installed. It didn't cause any obvious problems immediately. However after some time some pods cannot be deleted and the only error message I can find in the logs is the one mentioned above.
Your Environment
There is a CRI-O issue that may be related.
The text was updated successfully, but these errors were encountered: