Cài K8S Cluster bằng Kubespray thì mỗi worker node cần bao nhiêu RAM?
Nói cách khác
Máy ảo cần ít nhất bao nhiêu RAM để chạy K8S worker node
Nếu worker node không đủ RAM khi chạy Kubespray thì bạn sẽ gặp lỗi sau
TASK [kubernetes/preinstall : Stop if memory is too small for nodes] ***********
fatal: [worker1]: FAILED! => {
"assertion": "ansible_memtotal_mb >= minimal_node_memory_mb",
"changed": false,
"evaluated_to": false,
"msg": "Assertion failed"
}
fatal: [worker2]: FAILED! => {
"assertion": "ansible_memtotal_mb >= minimal_node_memory_mb",
"changed": false,
"evaluated_to": false,
"msg": "Assertion failed"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
master1 : ok=57 changed=2 unreachable=0 failed=0 skipped=56 rescued=0 ignored=0
worker1 : ok=50 changed=2 unreachable=0 failed=1 skipped=47 rescued=0 ignored=0
worker2 : ok=50 changed=2 unreachable=0 failed=1 skipped=47 rescued=0 ignored=0
Tuesday 28 November 2023 09:20:25 +0000 (0:00:00.054) 0:00:14.815 ******
===============================================================================
kubespray-defaults : Gather ansible_default_ipv4 from all hosts --------- 3.04s
Gather necessary facts (hardware) --------------------------------------- 1.08s
bootstrap-os : Install dbus for the hostname module --------------------- 0.72s
bootstrap-os : Assign inventory name to unconfigured hostnames (non-CoreOS, non-Flatcar, Suse and ClearLinux, non-Fedora) --- 0.67s
download : Download | Download files / images --------------------------- 0.56s
kubernetes/preinstall : Remove swapfile from /etc/fstab ----------------- 0.44s
bootstrap-os : Gather host facts to get ansible_os_family --------------- 0.42s
adduser : User | Create User -------------------------------------------- 0.36s
Gather minimal facts ---------------------------------------------------- 0.34s
Gather necessary facts (network) ---------------------------------------- 0.33s
bootstrap-os : Create remote_tmp for it is used by another module ------- 0.30s
kubernetes/preinstall : Check if booted with ostree --------------------- 0.29s
kubernetes/preinstall : Get content of /etc/resolv.conf ----------------- 0.28s
kubernetes/preinstall : Set is_fedora_coreos ---------------------------- 0.28s
kubernetes/preinstall : Check swap -------------------------------------- 0.27s
bootstrap-os : Ensure bash_completion.d folder exists ------------------- 0.25s
adduser : User | Create User Group -------------------------------------- 0.25s
kubernetes/preinstall : Check status of /etc/resolv.conf ---------------- 0.19s
kubernetes/preinstall : Check if /etc/dhclient.conf exists -------------- 0.18s
kubernetes/preinstall : Check resolvconf -------------------------------- 0.17s
Bạn có muốn
Học lập trình thực chiến
Học DevOps thực chiến
Học Ansible automation thực chiến
hãy mua khóa học này của chúng tôi