본문 바로가기

반응형

centos

C276x260 envoy를 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy) envoy를 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy)docker-compose.yml 편집vim docker-compose.ymlversion: '3.9'services: envoy: image: envoyproxy/envoy:v1.25-latest restart: unless-stopped container_name: envoy hostname: envoy volumes: - ./envoy_conf/envoy.yaml:/etc/envoy/envoy.yaml ports: - ${PORT_ADMIN:-9901}:9901 - ${PORT_DEFAULT:-10000}:10000도커 이미지 pull.. 더보기
C276x260 traefik을 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy) traefik을 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy)docker-compose.yml 기본 예제docker-compose.yml 편집vim docker-compose.ymlversion: "3.3"services: traefik: image: "traefik:v2.9" container_name: "traefik" command: #- "--log.level=DEBUG" - "--api.insecure=true" - "--providers.docker=true" - "--providers.docker.exposedbydefault=false" - "--entrypoints.web.add.. 더보기
C276x260 HashiCorp Nomad Cluster 구성 HashiCorp Nomad Cluster 구성(install nomad cluster)HashiCorp Nomad를 사용하여 멀티 서버 기반 Nomad 클러스터(Server + Client)를 구성하는 방법입니다.테스트 환경호스트 이름서버 아이피Type비고control1192.168.0.51server node1192.168.0.61server node2192.168.0.62server node3192.168.0.63client 1. Nomad 설치nomad 설치 : https://scbyun.com/1494버전 확인nomad --version2. Nomad Server Cluster 구성Server 노드 설정 (control1, node1, node2)각 Server 노드에 동일하게 /etc/noma.. 더보기
C276x260 HashiCorp Nomad 서버를 설치하고 구성하는 방법 HashiCorp Nomad 서버를 설치하고 구성하는 방법(install nomad)HashiCorp Nomad 서버를 설치하고 단일 노드(Server + Client)로 구성하는 방법입니다.Nomad란 무엇인가?Nomad는 클러스터 환경에서 다음과 같은 작업을 담당합니다.애플리케이션 실행 위치 결정(스케줄링)컨테이너 / 바이너리 / 배치 작업 실행장애 발생 시 재시작 및 재배치리소스(CPU, 메모리) 기반 작업 관리Kubernetes와 비슷한 역할을 하지만 훨씬 가볍고 단순한 구조가 특징입니다.우분투에서 Nomad 서버 설치패키지 설치sudo apt-get update && sudo apt-get install -y wget gpg coreutilsHashiCorp 공식 APT 저장소 등록wget -q.. 더보기
C276x260 consul 서비스 등록 consul 서비스 등록consul agent 환경 설정(consul.hcl)vim /etc/consul.d/consul.hcldatacenter = "my-dc-1"data_dir = "/opt/consul"bind_addr = "0.0.0.0" # Listen on all IPv4advertise_addr = "192.168.0.63"retry_join = ["control1", "node1", "node2"] /etc/consul.d/opt/consul/services/ web-service.hcl 편집cd /etc/consul.d$ lsconsul.env consul.hcl web-service.hclvim web-service.hclservice { name = "web check G" .. 더보기
C276x260 systemctl status 명령어 systemctl status 명령어systemctl status 명령어 구문- systemctl status { service-name }- systemctl status { unit-name } -l, --fullDo not ellipsize unit names, process tree entries, journal output, or truncate unit descriptions in the output of status, list-units, list-jobs, and list-timers.systemctl status vault --full --no-pagerDo not pipe output into a pager.systemctl status vault --no-pagersystemctl 사.. 더보기
C276x260 Consul 클러스터를 구성하는 방법 Consul 클러스터를 구성하는 방법테스트 환경호스트 이름서버 아이피Type비고node111192.168.10.111server node112192.168.10.112server node113192.168.10.113server haproxy100192.168.10.110client 1. 각 서버 노드에 Consul 설치consul 설치 : https://scbyun.com/14902. Consul 클러스터를 구성호스트 파일 설정sudo tee -a /etc/hosts > /dev/null Consul 설정 파일 작성consul.hcl 설정(/etc/consul.d/consul.hcl)각 서버 노드에 대해 설정 파일을 작성합니다.vim /etc/consul.d/consul.hclnode111sudo te.. 더보기
C276x260 우분투에 Consul을 설치하고 설정하는 방법 우분투에 Consul을 설치하고 설정하는 방법(install consul)consul ports tableUseDefault PortsDNS: The DNS server (TCP and UDP)8600HTTP: The HTTP API (TCP Only)8500HTTPS: The HTTPs APIdisabled (8501)*gRPC: The gRPC APIdisabled (8502)*LAN Serf: The Serf LAN port (TCP and UDP)8301Wan Serf: The Serf WAN port (TCP and UDP)8302server: Server RPC address (TCP Only)8300Sidecar Proxy Min: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최소 .. 더보기

728x90
반응형