Cài đặt Kubernetes trên CentOS 8.4
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config && systemctl stop firewalld && systemctl disable firewalld
### Cấu hình file hosts
cat <<EOF > /etc/hosts
172.16.1.240 node1
172.16.1.241 node2
172.16.1.242 node3
172.16.1.243 node4
172.16.1.244 node5
EOF
### Vô hiệu hóa swap
swapoff -a && sed -i '/swap/d' /et ...
Đăng vào ngày 14 tháng 6 lúc 16:40
Triển khai Môi trường Kubernetes 3 Node trong Môi trường Nội địa
Môi trường máy của tôi:
10.2.22.103: k8s-master
10.2.22.104: k8s-node1
10.2.22.105: k8s-node2
Cấu hình mỗi máy Ubuntu: 2 CPU, 8GB RAM
Phiên bản hệ điều hành: 20.04
Điều kiện tiên quyết: Tắt swap
sed -ri 's/.*swap.*/#&/' /etc/fstab
Cấu hình nguồn mirror Alibaba:
sudo apt-get update
sudo apt-get install -y curl gnupg2 software-properties-c ...
Đăng vào ngày 7 tháng 6 lúc 23:34