Commit f286db61 by ChongmingDu

Update 部署产品.md

parent 8452f778
1. 安装阿里云k8s yum源(全部机器) 1. 安装阿里云k8s yum源(全部机器)
...@@ -9,13 +9,16 @@ gpgcheck=0 ...@@ -9,13 +9,16 @@ gpgcheck=0
repo_gpgcheck=0 repo_gpgcheck=0
gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF EOF
```
```
# Set SELinux in permissive mode (effectively disabling it) # Set SELinux in permissive mode (effectively disabling it)
setenforce 0 setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
```
```
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
```
```
systemctl enable --now kubelet systemctl enable --now kubelet
``` ```
2. 调整kernel参数(二层的网桥在转发包时也会被iptables的FORWARD规则所过滤)(全部机器) 2. 调整kernel参数(二层的网桥在转发包时也会被iptables的FORWARD规则所过滤)(全部机器)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment