Master56 Node configuration ~]# vim /etc/keepalived/nf Master50 Node configuration ~]# vim /etc/keepalived/nf Priority 100 #master The master node must be configured with the largest one in the cluster Script "/etc/keepalived/check_apiserver.sh" # round robin balancing between the various backends # kubernetes apiserver frontend which proxys to the backends # common defaults that all the 'listen' and 'backend' sections will A line like the following can be added to # 2) configure local2 events to go to the /var/log/haproxy.log # by adding the '-r' option to the SYSLOGD_OPTIONS in
# 1) configure syslog to accept network log events. # to have these messages end up in /var/log/haproxy.log you will
#KUBEADM CENTOS 7 INSTALL#
~]# yum install keepalived haproxy -y`Īll master The configuration of the nodes is the same, as follows :īe careful : hold apiserver Change the address to your own node planning master Address
High availability uses HAProxy+Keepalived For high availability and master Node traffic load balancing ,HAProxy and KeepAlived In the form of a daemons at all Master Node deployment ~]# systemctl enable rviceĤ Cluster initialization ( stay master Execute on all node machines ) 4.1 Configure cluster high availability
Use kubeadm build k8s(1.18.2 edition ) High availability cluster