Infrastructure
HAProxy, NFS, httpd를 이용한 인프라 구축
c3epmos
2020. 5. 18. 17:24
개요
지금까지 배운 내용들을 이용해 간단한 인프라를 구축하겠다. 외부 Client는 Load Balancer를 통해서 내부 망의 Web server에 접속하고, Web server는 필요한 데이터를 Storage에서 가져온다.
Setting
LB | Web1 | Web2 | Storage | |
ens32 IP subnet mask gateway DNS |
192.168.108.10 24 192.168.108.2 8.8.8.8 |
192.168.108.11 24 192.168.108.2 8.8.8.8 |
192.168.108.12 24 192.168.108.2 8.8.8.8 |
192.168.108.13 24 192.168.108.2 8.8.8.8 |
ens33 IP subnet mask gateway DNS |
192.168.101.10 24 - - |
192.168.101.11 24 - - |
192.168.101.12 24 - - |
192.168.101.13 24 - - |
package | haproxy | httpd, nfs-utils |
httpd, nfs-utils | nfs-utils |
설치 후 방화벽 및 SELinux 중지
systemctl stop firewalld ; systemctl disable firewalld
setenforce 0 ; sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
패키지 설치 후에 web server, storage는 NAT 인터페이스를 shutdown한다
LB
Web
Storage