Nomad cluster with Terraform on AWS

By | 2022년 8월 21일
Table of Contents

Nomad cluster with Terraform on AWS

제목대로,
노마드 클러스터를 Terraform 을 이용해 AWS 에서 배포하는 방법을 설명합니다.
리눅스는 Ubuntu 를 기준으로 설명하지만,
Amazon Linux 도 정상작동하리라 생각합니다.

Nomad cluster 구성

Terraform 인스턴스 준비

참조

Consul cluster 구성

참조

Nomad server cluster 구성

참조

Nomad client cluster 구성

참조

Nomad cluster 서비스 등록

haproxy job

참조

prometheus job

참조

hello world job

참조

Nomad client with auto scaling 구성

ELB 설정 (도메인으로 Nomad client cluster 접속)

참조

ASG 설정

참조

Autoscaler job

참조

테스트

sudo apt  install hey
hey -z 10m -c 20 -q 40 https://nomad-client.skyer9.pe.kr:2020/:80 &

pkill hey

Trouble shooting

2 thoughts on “Nomad cluster with Terraform on AWS

답글 남기기