๋กœ์ผ“๐Ÿพ
article thumbnail
[ํŠธ๋Ÿฌ๋ธ” ๋นต์•ผ] 6๊ฐœ์›” ๋™์•ˆ ์ฆ๊ฑฐ์› ๋‹ค.. ์ž˜๊ฐ€๊ณ  ๋‹ค์‹  ๋ณด์ง€ ๋ง์ž! - 504 Gateway Timeout (ไธŠํŽธ)

์•ž์„œ ์ž‘์„ฑํ–ˆ๋˜ ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ… ๊ด€๋ จ ๊ธ€ ์ค‘์— ํ•œ ๊ธ€์€ ์ œ๋ชฉ์ด "ํƒ€๋…ธ์Šค๋Š” ์ด๋Ÿฐ ๋Š๋‚Œ์ผ๊นŒ?" ๋ผ๊ณ  ์ง€์—ˆ์„ ๋งŒํผ ๊ฝค๋‚˜ ํž˜๋“ค์—ˆ๋˜ ์—๋Ÿฌ์˜€์ฃ . ๊ทผ๋ฐ ์ด๋ฒˆ์— ๊ฒช์€ ์—๋Ÿฌ๋Š” ์•ž์„  ๊ธ€ ์ œ๋ชฉ์— ํƒ€๋…ธ์Šค ๋ผ๊ณ  ๋ถ™์ด๊ธฐ ๋ฏผ๋งํ•  ์ •๋„๋กœ ํ•ด๊ฒฐํ•˜๊ธฐ๊ฐ€ ์–ด๋ ค์› ๊ณ , ๋˜ํ•œ ์—๋Ÿฌ๊ฐ€ 6๊ฐœ์›”์ด๋‚˜ ์ง€์†๋  ์ •๋„๋กœ ํž˜๋“ค์—ˆ๋˜ ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…์ด์˜€์Šต๋‹ˆ๋‹ค. ๋“ค์–ด๊ฐ€๊ธฐ ์•ž์„œ ๊ฐ„๋žตํ•˜๊ฒŒ ํ˜„์žฌ ํ™˜๊ฒฝ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์•„์š”. ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค๋Š” AWS EKS(v1.23) ๋ฅผ ์ด์šฉํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, ์„œ๋น„์Šค๋ฉ”์‹œ ์„œ๋น„์Šค์ธ ์ด์Šคํ‹ฐ์˜ค(v1.18)์˜ ์ธ๊ทธ๋ ˆ์Šค ๊ฒŒ์ดํŠธ์›จ์ด์™€ AWS ALB ๋ฅผ ๋งตํ•‘ํ•˜์—ฌ ์™ธ๋ถ€์—์„œ ๋‚ด๋ถ€ ์„œ๋น„์Šค์— ์ ‘๊ทผ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ์—ฌ๊ธฐ์„œ ์‚ฌ์šฉํ•  ๋‚ด๋ถ€ ์„œ๋น„์Šค๋Š” ArgoCD(v2.5) ์ž…๋‹ˆ๋‹ค. ์—๋Ÿฌ๋Š” ME! ๊ฐ€ ArgoCD ์— ์ ‘๊ทผ์„ ํ–ˆ์„๋•Œ ๋ถˆํŠน์ •ํ•˜๊ฒŒ 504 Gateway Timeout ์ด ๋ฐœ..

article thumbnail
[Vault] ๋‚˜์•ผ.. ๋‚˜ ๋งž๋‹ค๊ณ ..!! - Vault AWS IRSA ๋ฌธ์ œ

EKS ์— ๋ฐฐํฌ๋œ ํŒŒ๋“œ๋“ค์€ AWS ์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ํฌ๊ฒŒ 2๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. EC2 Instance Profile IAM Role for Service Account EC2 Instance Profile ์€ ์›Œ์ปค ๋…ธ๋“œ์—๊ฒŒ AWS ์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋Š” ์ž๊ฒฉ ์ฆ๋ช…์„ ํ•ด์ฃผ์ฃ . ์ •ํ•ด์ง„ EC2 ์ธ์Šคํ„ด์Šค์— ์ •ํ•ด์ง„ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ฐฐํฌํ•œ๋‹ค๋ฉด ์œ„ ๋ฐฉ๋ฒ•์€ ์•„์ฃผ ์ข‹์€ ๋ฐฉ๋ฒ•์ด์—์š”. ํ•˜์ง€๋งŒ, ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ํ™˜๊ฒฝ์— ๋ฐฐํฌ๋˜๋Š” ํŒŒ๋“œ๋“ค์€ ํ•˜๋‚˜์˜ ํŠน์ •ํ•œ ๋…ธ๋“œ์— ๋ฐฐํฌ๋˜์ง€ ์•Š์•„์š”. NodeAffinity ์™€ Label ์„ ํ†ตํ•ด์„œ ๋…ธ๋“œ๋ฅผ ์ œํ•œํ•˜๊ธด ํ•˜์ง€๋งŒ ๋Š์Šจํ•˜๊ฒŒ ๊ทธ๋ฃนํ•‘์„ ํ•˜์ฃ . ๋งŒ์•ฝ ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ํ™˜๊ฒฝ์—์„œ App ์ด Replica 3 ๊ฐœ๋กœ ๋ฐฐํฌ๋˜๊ณ , Hard PodAffinity ๋ฅผ ์ฃผ์–ด ํŒŒ๋“œ๋ฅผ ์ „๋ถ€ ๋‹ค๋ฅธ ๋…ธ๋“œ์— ๋ฐฐํฌ๋˜๊ฒŒ๋” ํ•œ๋‹ค๋ฉด, ๋˜ ๋‹ค..

article thumbnail
[Github Action] ํƒ€๋…ธ์Šค๋Š” ์ด๋Ÿฐ ๋Š๋‚Œ์ผ๊นŒ? RUNNER_TOKEN must be set

์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ํ™˜๊ฒฝ์—์„  Action Controller Runner (์ดํ•˜ ARC) ๋ฅผ ์ด์šฉํ•ด์„œ ํŒŒ๋“œ๋ฅผ Self Hosted Runner ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ARC ๊ตฌ์กฐ๋Š” ์œ„์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. Self Hosted Runner ๋กœ ์‚ฌ์šฉํ•  ํŒŒ๋“œ๋ฅผ RunnerDeployment ๋˜๋Š” RunnerSet ์œผ๋กœ ๋ฐฐํฌํ•  ์ˆ˜ ์žˆ์ฃ . RunnerDeployment ๋Š” ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ Deployment ์™€ ๋™์ผํ•˜๊ฒŒ ๋™์ž‘ํ•˜๊ณ , RunnerSet ์€ StatefulSet ๊ณผ ๋™์ผํ•˜๊ฒŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ๋ฐฐํฌํ•˜๊ฒŒ ๋˜๋ฉด ํŒŒ๋“œ ์•ˆ์— 2๊ฐ€์ง€ ์ปจํ…Œ์ด๋„ˆ ๋™์ž‘ํ•˜๊ฒŒ ๋˜๋Š”๋ฐ, ํ•˜๋‚˜๋Š” Github Action Job ์„ ์ฒ˜๋ฆฌํ•˜๋Š” Runner ์ปจํ…Œ์ด๋„ˆ, ๋˜ ํ•˜๋‚˜๋Š” Docker ๊ด€๋ จ ์ผ์„ ์ฒ˜๋ฆฌํ•˜๋Š” Docker ์ปจํ…Œ์ด๋„ˆ์ž…๋‹ˆ๋‹ค. ์˜ต์…˜์„ ํ†ตํ•ด Runner..

article thumbnail
[Kubernetes] ์นœํ•œ ๋“ฏ, ์•ˆ ์นœํ•œ Pod ์™€ Goofys

Nginx ๊ธฐ๋ฐ˜์˜ Pod ๋‚ด์—์„œ S3 ์™€ Mount ํ•˜๊ธฐ ์œ„ํ•ด goofys ๋ฅผ ์‚ฌ์šฉํ–ˆ๋˜ ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. (goofys ๋ง๊ณ  EBS ๋‚˜ EFS ๋„ ์œ„์‹œ๋ฆฌ์ŠคํŠธ์— ์žˆ์—ˆ์ง€๋งŒ, goofys ๊ฐ€ ๊ฐ€์žฅ ์ ํ•ฉํ•˜๋‹ค๊ณ  ํŒ๋‹จํ•˜์—ฌ goofys ๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค) ๊ทธ๋ฆผ์œผ๋กœ ํ‘œํ˜„ํ•˜์ž๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ฃ . Nginx ๊ฐ€ provisioning ๋  ๋•Œ ConfigMap ์œผ๋กœ init.sh ๋ฅผ ์ฃผ์–ด goofys ๋ฅผ ๋งˆ์šดํŠธ ํ•œ ํ›„ ์‹คํ–‰๋˜๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฐ์‹์œผ๋กœ ๋ง์ด์ฃ . #!/usr/bin/env sh set -eu wget https://github.com/kahing/goofys/releases/latest/download/goofys chmod +x goofys /goofys /var/nginx ... nginx -g 'daemo..

article thumbnail
[Kubernetes] aws_auth ๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค..

ํ…Œ๋ผํผ์€ Code ๋กœ ์ธํ”„๋ผ๋ฅผ ๊ตฌ์ถ•ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋„์™€์ฃผ๋Š” IaC Tool ์ž…๋‹ˆ๋‹ค. ํŠนํžˆ AWS ์ธํ”„๋ผ๋ฅผ ๊ตฌ์ถ•ํ•  ๋•Œ ์ฐธ ์œ ์šฉํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ฃ . module ์„ ์ œ๊ณตํ•ด์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ์–ด๋ ต์ง€ ์•Š๊ฒŒ VPC, EKS, ELB ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฒˆ ๊ธ€์—์„œ๋Š” ํ…Œ๋ผํผ์„ ์ด์šฉํ•ด EKS ๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์—์„œ ๊ฒช์€ ๋ฌธ์ œ์ ๊ณผ ์ด๋ฅผ ํ•ด๊ฒฐํ–ˆ๋˜ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์ด์•ผ๊ธฐ ํ•ด๋ณผ๊นŒ ํ•ฉ๋‹ˆ๋‹ค. ์šฐ์„  Apply!! terraform-aws-eks ์— ๊ฐ€๋ณด๋ฉด ์•„์ฃผ ์นœ์ ˆํ•˜๊ฒŒ ํ…Œ๋ผํผ์„ ์ด์šฉํ•ด EKS ๋ฅผ ๊ตฌ์ถ•ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ๋ ค์ค๋‹ˆ๋‹ค. ๋ฌด์ž‘์ • eks ๋ชจ๋“ˆ์„ import ํ•˜๊ณ  example ๊ณผ EKS Best Practices Guides ์ฐธ๊ณ ํ•˜์—ฌ ํ…Œ๋ผํผ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค. provider "kubernetes" { h..

profile on loading

Loading...