centos安装
来源:1-3 搭建三节点ubuntu环境
qq_Michael_qA
2019-03-01
找不到swap(swapoff -a)
找不到设置net.bridge.bridge-nf-call-iptables为1
- centos使用yum来安装kubeadm,kubelet,kubectl. 需要配置正确可用的k8s yum repo
这个怎么配置
1回答
-
亲,课程中以ubuntu为主演示。至于centos,可采用下面步骤:
centos上bridge-nf-call-iptables的设置:
sudo modprobe br_netfilter
sudo echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
关闭swap:
sudo swapoff -a
添加yum repo:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo vi /etc/yum.repos.d/kubernetes.repo
kubernetes.repo内容:
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
sudo yum install -y kubelet kubeadm kubectl
以上仅供参考!祝学习愉快!
00
相似问题