In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge points about how to install kubernetes CNI. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Environment introduction
When we install kubernetes, we do not install CNI. If the sealyun offline package is used, modify the kube/conf/master.sh
Only the following can be left:
[root@helix105 shell] # cat master.sh kubeadm init-- config.. / conf/kubeadm.yamlmkdir ~ / .kubecp / etc/kubernetes/admin.conf ~ / .kube/configkubectl taint nodes-- all node-role.kubernetes.io/master-
Clear the CNI related directories:
Rm-rf / opt/cni/bin/*rm-rf / etc/cni/net.d/*
Start kubernetes, and if you have already installed it, then kubeadm reset:
Cd kube/shell & & sh init.sh & & sh master.sh
At this point, your node is notready, and your coredns cannot be assigned an address:
[root@helix105 shell] # kubectl get pod-n kube-system-o wideNAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATEScoredns-5c98db65d4-5fh7c 0 Pending 0 54s coredns-5c98db65d4 -dbwmq 0 kube-controller-manager-helix105.hfa.chenqian 1 Pending 0 54s kube-controller-manager-helix105.hfa.chenqian 1 Running 0 19s 172.16.60.105 helix105.hfa.chenqian kube-proxy-k74ld 1 Running 0 54s 172.16.60.105 helix105.hfa.chenqian kube-scheduler-helix105.hfa.chenqian 1 Running 0 14s 172.16.60.105 helix105.hfa.chenqian [root@helix105 shell] # kubectl get nodeNAME STATUS ROLES AGE VERSIONhelix105.hfa.chenqian NotReady master 86s v1.15.0 install CNI
Create a CNI profile
$mkdir-p / etc/cni/net.d$ cat > / etc/cni/net.d/10-mynet.conf
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
Http://www.apkmirror.com/apk/google-inc/android-system-webview/
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.