ddometita / mmumshad-kubernetes-the-hard-way

Apache License 2.0
95 stars 142 forks source link

Unable to start HA Proxy service. #7

Open arpipati opened 2 years ago

arpipati commented 2 years ago

After creating the HA Proxy configuration file and trying to restart HA Proxy, I get this error:

#sudo journalctl -u haproxy.service --since today --no-pager
Jan 29 00:00:17 master-1 haproxy[16567]: [ALERT] 028/000017 (16567) : Starting frontend kubernetes: cannot bind socket [192.168.5.30:6443]
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Failed with result 'exit-code'.
Jan 29 00:00:17 master-1 systemd[1]: Failed to start HAProxy Load Balancer.
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Service hold-off time over, scheduling restart.
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Jan 29 00:00:17 master-1 systemd[1]: Stopped HAProxy Load Balancer.
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Start request repeated too quickly.
Jan 29 00:00:17 master-1 systemd[1]: haproxy.service: Failed with result 'exit-code'.
Jan 29 00:00:17 master-1 systemd[1]: Failed to start HAProxy Load Balancer.
$ journalctl -xe
Jan 28 21:40:30 master-1 sshd[2007]: Received disconnect from 192.168.5.11 port 58580:11: disconnected by user
Jan 28 21:40:30 master-1 sshd[2007]: Disconnected from user vagrant 192.168.5.11 port 58580
Jan 28 21:44:27 master-1 sshd[2109]: Received disconnect from 192.168.5.11 port 58584:11: disconnected by user
Jan 28 21:44:27 master-1 sshd[2109]: Disconnected from user vagrant 192.168.5.11 port 58584

I tried to troubleshoot following this guide. However, I am still getting the same error.

I am installing HA Proxy on both master-1 and master-2 nodes.

Please Help!!