AWS Marketplace
#
Introductionkupboard contianer๋ Docker Container๊ฐ ์คํ๋ ์ ์๋ ์ด๋ค ํ๊ฒฝ์์๋ ์คํ์ด ๊ฐ๋ฅํ๋ค. ์ด ์น์ ์์๋ AWS Marketplace์ ๋ฑ๋ก๋ kupboard container๋ฅผ ์ค์น ๋ฐ ์คํ๋ฐฉ๋ฒ์ ์ค๋ช ํ๊ณ , kupboard ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ๋จํ ๊ตฌ์ฑ์ Cloud Native ํ๊ฒฝ์ธ ๊ตฌ์ถํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํ๋ค.
note
If you use a kupboard container of Dockerhub instead of AWS Marketplace, skip the subscription process and move to Servers to create EC2 instances.
#
SubscriptionKupboard๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋จผ์ AWS Marketplace์์ kupboard
๋ฅผ ๊ฒ์ํ ํ [Continue to Subscribe]๋ฅผ ์ ํํ์ฌ ๊ตฌ๋
ํ๋ค.
๊ตฌ๋ ๊ณผ์ ์ด ์๋ฃ๋๋ฉด [Continue To Configuration]์ ์ ํํ์ฌ ์ค์ ํ๋ฉด์ผ๋ก ์ด๋ํ๋ค.
์ค์ ๋ฉ๋ด์์ Delivery Method์ Software Version์ ์ ํ ํ [Continue to Launch]๋ฅผ ์ ํํ๋ค.
์ด์ Kupboard๋ฅผ ์คํํ ์ค๋น๊ฐ ์๋ฃ๋์๋ค. ํ๋จ์ [View container image details] ๋งํฌ๋ฅผ ์ ํํ๋ฉด Kupboard ์ปจํ ์ด๋ ์ด๋ฏธ์ง๋ฅผ Pullํ๊ธฐ ์ํ ๋ช ๋ น์ด๋ฅผ ํ์ธํ ์ ์๋ค.
#
InstallationAWS Marketplace์ ๋ฑ๋ก๋ container๋ฅผ ์ฌ์ฉํ๊ธฐ์ํด์๋ ๋จผ์ awscli
๋ฅผ ์ค์นํด์ผ ํ๋ค. ๋ง์ฝ ์ค์น๋์ง ์์๋ค๋ฉด Installing, updating, and uninstalling the AWS CLI๋ฅผ ๋ฐฉ๋ฌธํ์ฌ ์ค์นํ๋ค.
note
awscli
๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ๊ธฐ ์ ์ AWS ๊ณ์ ์ credentail์ ์๋์ ๊ฐ์ด ์ ์ํด์ผ ํ๋ค. ๋ง์ฝ awscli
์ ์ต์ํ์ง ์์ ์ฌ์ฉ์๋ผ๋ฉด Set up AWS Credentials and Region for Development๋ฅผ ์ฐธ๊ณ ํ๊ธธ ๋ฐ๋๋ค.
#
Login to registryAWS Marketplace์์ ๊ตฌ๋ ํ kupboard container๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋จผ์ AWS Marketplace์ registry์ ๋ก๊ทธ์ธํด์ผ ํ๋ค.
#
Pull kupboard image#
Run kupboardkupboard container๊ฐ ์ ์์ ์ผ๋ก pull๋์๋ค๋ฉด docker run
๋ช
๋ น์ด๋ฅผ ์ฌ์ฉํ์ฌ ์๋์ ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ์ถ๋ ฅ๋ ๊ฒ์ด๋ค.
#
Bash script for running kupboard (Recommended)kupboard container๋ฅผ ์คํํ๊ธฐ ์ํด docker ๋ช ๋ น์ด๋ฅผ ์ง์ ์ฌ์ฉํ๋ ๋์ ์๋์ ๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก bash script๋ฅผ ์์ฑํด์ ์ฌ์ฉํ๋ฉด ํจ์ฌ ๊ฐ๋จํ๊ฒ ์ฌ์ฉํ ์ ์๋ค.
bash script๋ฅผ ์ฌ์ฉํ์ฌ kupboard ๋ช ๋ น์ด๋ฅผ ์คํํ๋ ์์ ์ด๋ค.
data
ํด๋๋ฅผ ๋ง์ดํธ ํ ๊ฒฝ์ฐ์๋ ์๋์ ๊ฐ์ด -v
์ต์
์ ์ถ๊ฐํ๋ค.
#
ServersKupboard์ ํด๋ฌ์คํฐ๋ ์๋น์ค์ ์ฉ๋์ ๋ฐ๋ผ์ ๋ค์ํ๊ฒ ๊ตฌ์ฑ๋ ์ ์๋ค. ์ฌ๊ธฐ์์๋ 1๊ฐ์ ์๋ฒ๋ก ๊ตฌ์ฑ๋ Admin ํด๋ฌ์คํฐ, 1๊ฐ์ ์๋ฒ๋ก ๊ตฌ์ฑ๋ Gatewayํด๋ฌ์คํฐ ๊ทธ๋ฆฌ๊ณ 4๊ฐ์ ์๋ฒ๋ก ๊ตฌ์ฑ๋ Serviceํด๋ฌ์คํฐ๋ฅผ ์์ฑํ์ฌ ์ ์ฒด ์์คํ ์ ๊ตฌ์ฑํ ์์ ์ด๋ค.
note
kupboard์ 0.9 ๋ฒ์ ์์๋ EC2 ์ธ์คํด์ค์ ์์ฑ ๋ฐ ๊ด๋ฆฌ๋ฅผ ์๋์ผ๋ก ์งํํ์ง๋ง, ์ดํ ๋ฒ์ ์์๋ awscli
๋ฅผ ํตํ์ฌ ์ธ์คํด์ค๊น์ง ์๋์ผ๋ก ๊ด๋ฆฌํ๋ ๊ธฐ๋ฅ์ด ์ถ๊ฐ๋ ์์ ์ด๋ค.
#
EC2 Instance์๋ ํ ์ด๋ธ๊ณผ ๊ฐ์ด 6๊ฐ์ ์ธ์คํด์ค๋ฅผ ์์ฑํ๋ค. ๋ชจ๋ ์ธ์คํด์ค์ OS๋ Ubuntu18.04 ๋๋ 20.04 ์ด์ด์ผ ํ๋ฉฐ ๋ชจ๋ ์ธ์คํด์ค๋ ๋์ผํ key pair๋ฅผ ์ฌ์ฉํด์ผ ํ๋ค.
Cluster | EC2 Type | Quantity | Boot Volume | EBS Volume |
---|---|---|---|---|
Admin | t3.meidum < | 1 | 50GB | N/A |
Gateway | t3.meidum < | 1 | 30GB | N/A |
Service | t3.large < | 4 | 30GB | 50GB |
info
Serviceํด๋ฌ์คํฐ๋ฅผ ๊ตฌ์ฑํ๋ ์ธ์คํด์ค๋ค์ EBS Volume์ด ์ถ๊ฐ๋์ด์ผ ํ๋ค. ์ด๋ kupboard๊ฐ ํด๋ฌ์คํฐ๋ฅผ ์ด๊ธฐํํ๋ ๊ณผ์ ์์ ์๋์ผ๋ก ์ปจํธ๋กค๋๊ธฐ ๋๋ฌธ์ ๋ณ๋์ ํฌ๋งท์ด๋ ๋ง์ดํธ ์์ ์ ํ์๋ก ํ์ง ์๋๋ค.
note
kupboard-0.9
์์๋ Ubuntu๊ฐ ์ค์น๋ Host๋ง ์ง์ํ์ง๋ง ์ดํ ๋ฒ์ ์๋ Centos๊ฐ ์ค์น๋ Host๋ ์ง์๋ ์์ ์ด๋ค.
#
Security Groupkupboard-sg
์ด๋ฆ(๋๋ ๋ค๋ฅธ ์ด๋ฆ)์ Security Group์ ์์ฑํ์ฌ ์๋์ ๊ฐ์ด Inbound์ Outbound๋ฅผ ์ค์ ํ๋ค. kupboard ํด๋ฌ์คํฐ์ ํฌํจ๋๋ ๋ชจ๋ ์ธ์คํด์ค๋ค์ kupboard-sg
Security Group์ด ์ ์ฉ๋์ด์ผ ํ๋ค.
Cluster | Inbound | Source |
---|---|---|
All | 22 | 0.0.0.0/0 |
1 - 65535 | kupboard | |
Admin | 80,443 | 0.0.0.0/0 |
Gateway | 80,443 | 0.0.0.0/0 |
Cluster | Outbound | Destination |
---|---|---|
All | 1 - 65535 | 0.0.0.0/0 |