본문 바로가기

분류 전체보기55

LBaaS를 통한 Loadbalance 1. 확인을 위한 configure-httpd 파일 생성 vi configure-httpd1 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB1" > /var/www/html/index.html vi configure-httpd2 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB2" > /var/www/html/index.html 2. Instance 생성 openstack server create --image centos7 --flavor wp --key-name al.. 2020. 7. 13.
Install Docker (Ubuntu) ** Repository를 사용하여 설치 ** 1. apt update sudo apt-get update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common 2. Docker의 공식 GPG key 추가 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 3. repository set up sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs.. 2020. 7. 13.
Docker란? 1. Docker란? Docker는 2013 Docker사에서 Go lang으로 개발한 오픈소스 플랫폼이다. Docker를 사용하여 리눅스 컨테이너를 더 쉽게 관리하고 사용할 수 있다. Docker의 가장 큰 특징은 이식성인데, 이는 개발 환경, 테스트 환경, 서비스 환경을 모두 동일하게 사용할 수 있기 때문이다. 컨테이너에 필요한 서비스 등을 다 넣어놓고 실행만 하면 된다는 개념 부팅가능하지않다. 모든 컨테이너는 docker file에 저장해서 공유한다. 서버를 코드 형태로 정의 Docker는 이미지를 사용하여 컨테이너를 실행한다. 이 컨테이너는 하나의 애플리케이션을 실행하는 서버처럼 동작한다. Docker는 이미지를 제작할 때 코드형태로 정의하여 작성할 수 있다. 따라서 서버를 코드형태로 정의할 수 .. 2020. 7. 13.
NFS를 Cinder로 사용하기 Cinder는 lvm만 사용 가능한데 거기에 nfs를 붙인다. 1. NFS-Server = Controller /dev/vde를 /cinder/nfs에 mount mkfs.xfs /dev/vde mount /dev/vde /cinder/nfs 2. /etc/cinder/cinder.conf enabled_backends = lvm,nfs [nfs] volume_backend_name= nfs volume_driver=cinder.volume.drivers.nfs.NfsDriver nfs_shares_config = /etc/cinder/nfs_shares nfs_sparsed_volumes = true nfs_qcow2_volumes = true nfs_mount_point_base = $state_pa.. 2020. 7. 10.