
Systemctl enable haproxy & systemctl start haproxy & systemctl status haproxy # main 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 # Example configuration for a possible web application. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT (S ) AGE ~ ] # kubectl expose deploy/nginx -port 80.Nginx-ccb467dc5-dklwf 1/1 Running 0 2m20s ~ ] # kubectl run nginx -image=nginx:latest -replicas=4.

~ ] # kubectl taint node master /master- ~ ] # kubectl describe node master | grep Taints //查看修改后的状态.
KUBEADM CENTOS 7 KUBE PROXY IPVS INSTALL

~ ] # vim /etc/sysconfig/modules/ipvs.modules #!/bin/bash.~ ] # echo '_forward = 1' > /etc/sysctl.d/k8s.conf ~ ] # echo '-nf-call-ip6tables = 1' > /etc/sysctl.d/k8s.conf ~ ] # echo '-nf-call-iptables = 1' > /etc/sysctl.d/k8s.conf ~ ] # modprobe br_netfilter ~ ] # sysctl -p /etc/sysctl.d/k8s.conf.Server 192.168.117.14 ~ ] # systemctl enable chronyd ~ ] # systemctl restart chronyd ~ ] # yum install -y chrony ~ ] # sed -i 's/^server/#&/' /etc/nf ~ ] # vim /etc/nf //添加以下配置Īllow ~ ] # systemctl enable chronyd ~ ] # systemctl restart chronyd ~ ] # timedatectl set-ntp ~ ] # yum install -y chrony ~ ] # sed -i 's/^server/#&/' /etc/nf ~ ] # vim /etc/nf //添加如下配置.~ ] # swapoff -a ~ ] # sed -i /etc/fstab.
