Loading... ## 官方提供的部署方式: minikube - 不推荐 过于轻便 kubeadm - 初学简单 上手快 维护困难 二进制 - 早起方案 推荐 ## 环境初始化使用 ``` # 关闭防火墙 -- 仅做测试用 systemctl stop firewalld systemctl disable firewalld # 关闭selinux setenforce 0 #临时 sed -i 's/enforcing/disabled' /etc/selinux/config #永久 # 关闭swap swapoff -a # 临时 vim /etc/fstab # 永久手动关闭 # 同步系统时间 netdate time.windows.com # 添加host vim /etc/hosts xxx name xxx name ``` ## etcd 集群部署 内部是通过https进行连接的,因此需要手动自签名SSL证书 需要有两套https通信,一套是etcd的,一套是api server的证书 使用的是cfssl进行自签名处理 [1]: https://acimg.htt5.com/usr/2020/09/08/1599560870.png 最后修改:2020 年 12 月 09 日 01 : 20 PM © 允许规范转载 赞赏 如果觉得我的文章对你有用,或者你想py,请随意赞赏 ×Close 赞赏作者 扫一扫支付 支付宝支付 微信支付