리눅스 썸네일형 리스트형 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.. 더보기 nomad cluster 구성(install nomad cluster) nomad cluster 구성테스트 환경호스트 이름서버 아이피Type비고control1192.168.0.51server node1192.168.0.61server node2192.168.0.62server node3192.168.0.63client nomad 설치- nomad 설치 : https://scbyun.com/1494 nomad cluster 구성nomad.hcl 설정(/etc/nomad.d/nomad.hcl)vim /etc/nomad.d/nomad.hcl[control1-nomad.hcl]data_dir = "/opt/nomad/data"bind_addr = "0.0.0.0"server { # license_path is required as of Nomad v1.1.1+ #license.. 더보기 nomad 설치(install nomad) nomad 설치(install nomad)- install nomad server on ubuntusudo apt-get update && sudo apt-get install -y wget gpg coreutilswget -q -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg >/dev/nullecho "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo t.. 더보기 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" .. 더보기 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 사.. 더보기 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.. 더보기 우분투에 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: 자동으로 할당된 사이드카 서비스 등록에 사용할 포함된 최소 .. 더보기 docker nettools docker nettools docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest >docker run -it --rm --name nettools -h nettools anti1346/ubuntu-nettools:latest root@nettools:~$ date Wed Jan 25 06:31:23 UTC 2023 docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest >docker run -it --rm --net=host --cap-add net_admin anti1346/ubuntu-nettools:latest roo.. 더보기 이전 1 ··· 80 81 82 83 84 85 86 ··· 187 다음