[Docker] Container monitoring
·
DevOps/Docker & Kubernetes
📕 목차 1. Monitoring Tech Stack at Containerized Application 2. Measured Value Output 3. Prometheus Container 4. Grafana Container 5. Level of Observability 6. Practice 1. Monitoring Tech Stack at Containerized Application 📌 Container 환경에서의 Monitoring 전통적인 Application 모니터링 서버 목록과 현재 동작 상태(잔여 disk 공간, memory와 CPU 사용량)가 표시된 대시보드가 존재 과부하가 걸리거나 응답하지 않는 Server 발생 시 경보 발생 Container 환경에서 모니터링 Container를 ..
[Linux] Remote Access : Encryption
·
DevOps/Linux
📕 목차 1. 암호화(Encryption) 2. OpenSSH 3. SSH로 Remote Server Login 4. non-password SSH 접근 5. SCP 6. Linux Process Control 더보기 🌱 명령어 정리 # APT 기반의 소프트웨어 패키지 상태 검사 dpkg -s openssh-client # 시스템 프로세스(systemd) 상태 검사 systemctl status ssh # 서비스 시작 systemctl status ssh # 컴퓨터에 있는 네트워크 인터페이스를 모두 나열 IP ADDR # ssh 키 쌍을 새로 생성 ssh-keygen # 원경 컴퓨터에 로컬 컴퓨터의 SSH 공개 키를 복사해 추가한다. cat .ssh/id_rsa.pub | ssh (계정)@(ip) "ca..
[Docker] Health check & Dependency check
·
DevOps/Docker & Kubernetes
📕 목차 1. Health check를 지원하는 Docker Image 빌드 2. Dependency check가 적용된 Container 실행 3. Custom Utility 4. Docker compose에 Health & Dependency checky 정의 5. 복원력 있는 Application 6. 연습 문제 1. Health check를 지원하는 Docker Image 빌드 이전까지 Docker Image로 Application을 패키징하고, 실행하고, Docker compose로 여러 Container를 동시에 실행하는 것까지 했다. 이제는 운영 환경에 맞게 Application을 다듬을 차례다. 📌 Health check docker swarm이나 kubernetes는 Container P..
[Docker] Docker Compose : 분산 애플리케이션
·
DevOps/Docker & Kubernetes
📕 목차 1. Docker Compose file 구조 2. 여러 Container로 구성된 Application 실행 3. Docker Container 간의 통신 4. Application 설정값 지정 5. 한계 6. 연습 문제 1. Docker Compose file 구조 📌 As-is Dockerfile로 인해 배포가 용이해지긴 했지만, Application의 한 부분을 패키징하는 수단에 불과하다. 가장 흔히 사용되는 3-Tier Architecture of Web Application만 해도 최소 3개의 Container가 필요하다. Presentation Tier : 일반 사용자가 직접 access 할 수 있는 layer Logic Tier : business logic layer Data T..