标签:cni github 获取 baseurl enforce aml app ppi info
kubernates version : v1.19.0
vim /etc/yum.repos.d/kubernates.repo
[kubernate]
name=Kubernates Repository
baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernates
yum -y install docker
systemctl enable docker && systemctl start docker
systemctl enable kubelet
关闭 selinux
临时关闭命令
setenforce 0
永久关闭
vim /etc/selinux/config
SELINUX=disabled
关闭防火墙
systemctl stop firewalld
删除 swap
swapoff -a && sysctl -w vm.swappiness=0
获取默认配置信息
kubeadm config print init-defaults > init.default.yaml
修改配置
vim init.default.yaml
拉取所需镜像
kubeadm config images pull --config=init.default.yaml
初始化master
kubeadm init --config=init.default.yaml
flannel
kubectl apply -f http://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
标签:cni github 获取 baseurl enforce aml app ppi info
原文地址:https://www.cnblogs.com/virgosnail/p/13663236.html