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)06/01 Report--
This article mainly introduces how to install kubernetes in centos, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Centos7 kernel version is too low, some kubernetes components have high kernel requirements (such as rook-ceph), so recommend ubuntu20.04 https://my.oschina.net/u/160697/blog/4416873
Refer to https://kubernetes.io/zh/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/
Environmental centos7 and above
Use AliSource:
cat /etc/yum.repos.d/kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/enabled=1gpgcheck=1repo_gpgcheck=1gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpghttps://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgEOF# update system yum update -y#prohibit firewall systemctl stop firewalldsystemctl disable firewalld#will SELinux is set to permissive mode setenforce 0sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/'/etc/selecux/configurum install -y kubelet kubeadm kubectl --disableexclusive udes =kubernetes#install specified version #yum install -y kubelet-1.20.5 - 0 kubeadm-1.20.5 - 0 kubectl-1.20.5-0 --disableexcludes=kubernetessystemctl enable --now kubelet
Some RHEL/CentOS 7 users have experienced problems with traffic not being routed properly because iptables were bypassed. You should ensure that net.bridge.bridge-nf-call-iptables is set to 1 in the sysctl configuration.
cat /etc/docker/daemon.json
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
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.