Develop/DevOps
-
Develop/DevOps 2022. 12. 16. 23:33
💡 Github Actions이란? Github Action은 build, test, deployment와 같은 workflow를 자동화할 수 있는 CI/CD 플랫폼으로, github repository에서 발생하는 모든 이벤트(push, pull request, merge 등)에 대하여 정해진 동작을 실행시키도록 할 수 있다. 진행중인 프로젝트에서는 docker compose를 이용해 서비스 컨테이너들을 관리하고 있다. 소스코드가 수정될 때마다 수동으로 컨테이너를 삭제하고 빌드하는 방식으로 테스트 서버를 운영하다가 Github action을 사용하여 CI/CD를 자동화해보기로 했다. 🤔 CI/CD 프로세스 설계해보기 다음과 같은 프로세스들을 자동화시키려 하였다. 1. 생성된 pull request에 대..
-
Develop/DevOps 2022. 9. 18. 22:12
🍏 Vargrant란? - OS를 프로비저닝하기 위한 도구로, VM을 생성하고 관리하기 위해 사용한다 - hostname, ip, service등의 환경을 손쉽게 구성하여 시스템을 사용할 수 있다 N개의 worker node를 생성하는 Vagrant file을 작성했다. 주석으로 자세한 설명을 기록하였다. 이제 vagrant up으로 파일을 빌드하면, 다음과 같이 ip를 할당하고, port를 포워딩하며 vm을 생성한다. 나는 N=3으로 3개의 worker node를 생성하였는데, 모두 running 상태로 잘 동작하고 있는 것을 확인할 수 있다. 쉘에서는 vagrant status 명령어로 확인할 수 있고, provider로 설정한 VirtualBox에서도 확인 가능하다. vb.customize(--gr..
-
Develop/DevOps 2021. 10. 23. 16:41
AWS Community Day Online 2021 세션 수강! 인터넷 기반의 컴퓨팅을 Cloud라고 정의한다 1. AWS Network VPC (virtual Private Cloud) AWS 계정 전용의 가상 데이터 센터 (네트워크가 분리되어 있는 개인의 사설 network 센터 개념) region에 종속적 region 당 다수의 vpc 생성 가능 계정당 생성 가능한 vpc의 개수는 한정이 되어 있음 enterprise 환경에서는 다수의 vpc를 이용하는 경우가 다수 소규모 app의 경우 단일 vpc가 유리할 수도 있다! 1. 사용할 IP 범위 대역 구하기 CIDR notation 사용 ex) 172.16.0.0/16 (IP/subnet) 2. VPC 내부의 subnet 생성 subnet은 AZ에 ..