gugltropical.blogg.se

Kubeadm centos 7
Kubeadm centos 7














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

kubeadm centos 7

# 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

kubeadm centos 7

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

  • take kubelet Set to power on self starting.
  • ~]# cat > /etc/sysctl.d/k8s.conf /etc/sysconfig/modules/ipvs.modules /etc//kubernetes.repo ~]# sed -i "s/^SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 On each machine )ġ27.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  • 2) Configure the host hosts mapping ( Execute.
  • K8s-lb There is no need to set the host name, Just write on every machine in the group hosts( Can be interpreted as keepalive Of hosts Or domain name, stay kubeadmi Create a cluster using k8s-lb:xxxx So it needs to be equipped with host)
  • 1) Configure host name, With k8s-master49 For example ( You need to modify the host name according to the node planning role in turn ).
  • ġ72.16.197.200 k8s-lb 2 Basic environment preparationĢ.1 Environment initialization ( Execute. If you want to be more familiar with k8s It is recommended to use binary architecture for learning.

    kubeadm centos 7

    Use kubeadm build k8s(1.18.2 edition ) High availability cluster














    Kubeadm centos 7