In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "kubernetes appears failed to find plugin" portmap "in path [/ opt/cni/bin]] how to solve", the article explains the content is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "kubernetes appears failed to find plugin" portmap "in path [/ opt/cni/bin]] how to solve" it!
When using kubectl get node-owide, a node notready, and then using sudo systemctl status kubelet, the output is as follows:
(base) supermap@openbox00:~/openthings/kubernetes-tools$ sudo systemctl status kubelet ● kubelet.service-kubelet: The Kubernetes Node Agent Loaded: loaded (/ lib/systemd/system/kubelet.service; enabled; vendor preset: enabled) Drop-In: / etc/systemd/system/kubelet.service.d └─ 10-kubeadm.conf Active: active (running) since Fri 2021-04-09 22:30:35 CST 3 weeks 1 days ago Docs: https://kubernetes.io/docs/home/ Main PID: 2657 (kubelet) Tasks: 17 (limit: 18741) Memory: 182.0M CGroup: / system.slice/kubelet.service └─ 2657 / usr/bin/kubelet-bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf-kubeconfig=/etc/kubernetes/kubelet.conf-config=/var/lib/kubelet/config.yaml-cgroup-driver=systemd -- net > May 02 18:49:13 openbox00 kubelet [2657]: {May 02 18:49:13 openbox00 kubelet [2657]: "type": "portmap" May 02 18:49:13 openbox00 kubelet [2657]: "capabilities": {May 02 18:49:13 openbox00 kubelet [2657]: "portMappings": true5 02 18:49:13 openbox00 kubelet [2657]:} May 02 18:49:13 openbox00 kubelet [2657]:} May 02 18:49:13 openbox00 kubelet [2657]:] May 02 18:49:13 openbox00 kubelet [2657]:} May 02 18:49:13 openbox00 kubelet [2657]:: [failed to find plugin "flannel" in path [/ opt/cni/bin] failed to find plugin "portmap" in path [/ opt/cni/bin]] May 02 18:49:13 openbox00 kubelet [2657]: W0502 18 flannel 49 cni.go:239 13.163614 2657 cni.go:239] Unable to update cni config: no valid networks found in / etc/cni/net.d [4] + sudo systemctl status kubelet has been stopped
It probably means that there is something wrong with cni.
Check / opt/cni/bin and find that the directory inside is empty and should not be.
Ls-l / opt/cni/bin
Reinstall kubernetes cni. During the process, you found that kubelet and kubeadm were also uninstalled. Reinstall:
Sudo apt remove kubernetes-cnisudo apt install kubernetes-cni kubelet kubeadm
Then use sudo systemctl status kubelet and kubectl get node-owide to check the status of the service and node and return to normal.
However, the node used to work normally, and it is not clear what caused the problem.
Thank you for your reading, the above is the content of "kubernetes appears failed to find plugin" portmap "in path [/ opt/cni/bin]] how to solve", after the study of this article, I believe you have a deeper understanding of how kubernetes appears failed to find plugin "portmap" in path [/ opt/cni/bin]], and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.