Bài đăng phổ biến
[solved] configure: *** XML documentation will not be available because the 'libxml2' development package is missing.yum install install libxml2-devel Nguyen Si Nhan
For example : If You want to access this url http://test.example.com.vn/everything : you will type url in Google Chrome like that: test.exa...
Friday, September 30, 2022
Sunday, September 25, 2022
Tuesday, September 20, 2022
Friday, September 16, 2022
Saturday, September 10, 2022
Thursday, September 8, 2022
I. Prerequisite : Run in all worker node .
2. Letting iptables see bridged traffic on all node:
3. Change cgroup of docker to systemd :
then restart docker
4. Setup kubelet,kubeadm,kubectl
5. Create file with content like that :
# vi /etc/NetworkManager/conf.d/99-unmanaged-devices.conf
run below command to apply :
II. Demo installation environment:
III. Setup load balancer
main content of file : haproxy.cfg
IV. Setup masternode :
Have a lot of to setup master node If you guys want to learn to install each component this is follow link to do :
In this tutorial i will describe how to install using kubeadm .
ssh into server master01 : 10.1.1.30 run it like this :
kubeadm init --control-plane-endpoint "$LOADBALANCER:6444" --upload-certs --pod-network-cidr 192.168.96.0/19 --service-cidr 192.168.96.0/19
waiting for kubeadm finish it will return like below:
run this command to get status of worker node :
to view node status , note: status of master node is still NotReady
Login into master02 và master03 : then run :
V. Join worker node
Login into each worker node then run:
status of cluster is still NotReady because we have not yet install network for cluster .
VI. Setup network cho Kubernetes :
have a lot of 3rd support CNI but in this tutorial I choose calico :
login into a master node then run these below command:
After done network , Status of cluster should be Ready. :
kubectl get node
Calico default is enable ipip encapsulation , I switch to vxlan encapsulation because i think it's stable than ipip encapsulation .
projectcalico.org/v3 IPPool defaultipv4ippool 192.168.96.0/19 CrossSubnet