Jan 23 23:18:53 k8s-ha1 haproxy-systemd-wrapper: [ALERT] 022/231853 (4316) : Starting proxy k8s-6443: cannot bind socket [172.31.7.188:6443] Jan 23 23:18:53 k8s-ha1 systemd: haproxy.service: main process exited, code=exited, status=1/FAILURE Jan 23 23:18:53 k8s-ha1 haproxy-...
bind *:16443 # 必须为* BACKUP的主机,没有VIP,会导致haproxy cannot bind socket option tcplog default_backend backend-apiserver #--- # round robin balancing for apiserver #--- backend backend-apiserver mode tcp option httpchk GET /healthz http-check expect status 200 option ssl-hello-chk # ...
一、Master高可用 解决Master单节点,以及etcd单节点的问题,需要针对Master高可用,etcd数据要保持一致。 [root@localhost ~]# hostnamectl set-hostname master01[root@localhost ~]# hostnamectl set-hostname master02[root@localhost ~]# hostnamectl set-hostname master03#生成ssh-key[root@localhost ~]# ssh...
创建kubelet bootstrapping kubeconfig 文件 cd/etc/kubernetesexportKUBE_APISERVER="https://192.168.223.200:6443"# 设置集群参数kubectlconfig set-cluster kubernetes \--certificate-authority=/etc/kubernetes/ssl/ca.pem \--embed-certs=true \--server=${KUBE_APISERVER} \--kubeconfig=bootstrap.kubeconfig# ...