๋ฐ˜์‘ํ˜•

๐Ÿ“‚ Container & K8S/Kubernetes 2

[K8S] Karpenter์™€ Cluster AutoScaler(CA)

์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ Auto Scaling Auto Scaling์€ ๋ถ€ํ•˜์™€ ์š”๊ตฌ ์‚ฌํ•ญ์— ๋”ฐ๋ผ ์ปดํ“จํŒ… ๋ฆฌ์†Œ์Šค๋ฅผ ์ž๋™์œผ๋กœ ์กฐ์ •ํ•˜์—ฌ ์ตœ์ ์˜ ์„ฑ๋Šฅ๊ณผ ๋น„์šฉ ํšจ์œจ์„ฑ์„ ์ œ๊ณตํ•˜๋Š” ํ”„๋กœ์„ธ์Šค์ž…๋‹ˆ๋‹ค. EKS์—์„œ Auto Scaling์€ ‘Pod Auto Scaling’๊ณผ ‘Node Auto Scaling’ 2๊ฐ€์ง€๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. Pod์˜ Auto Scaling Horizontal Pod Autoscaler(HPA) : pod์˜ ์ˆ˜ํ‰์ ์ธ scaling(scale out/in)์„ ๋‹ด๋‹นํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ Vertical Pod Autoscaler(VPA) : pod์˜ ์ˆ˜์ง์ ์ธ scaling(scale up/down)์„ ๋‹ด๋‹นํ•˜๋Š” ์ปดํฌ๋„ŒํŠธ Node์˜ Auto Scaling Cluster AutoScaler(CA) : k8s ํด๋Ÿฌ์Šคํ„ฐ์—์„œ ๋…ธ๋“œ๋ฅผ s..

[K8S] kubectl ๋ช…๋ น์–ด ์ •๋ฆฌ

kubectl ๊ตฌ๋ฌธ kubectl [COMMAND] [TYPE] [NAME] [FLAGS] COMMAND : ๋ฆฌ์†Œ์Šค์— ์ˆ˜ํ–‰ํ•˜๋Š” ๋™์ž‘์„ ์ง€์ •(create, get, describe, delete ๋“ฑ) TYPE : ๋ฆฌ์†Œ์Šค ํƒ€์ž…์„ ์ง€์ •(node, pod, service) NAME : ๋ฆฌ์†Œ์Šค ์ด๋ฆ„์„ ์ง€์ • FLAGS : ๋ถ€๊ฐ€์ ์„ ์„ค์ •ํ•  ์˜ต์…˜(--helo, --dry-run, -o yaml ๋“ฑ) kubectl ์•ฝ์–ด(shortname) ns -> namespace sa -> serviceaccount no -> node po -> pod rs -> replicaset deploy -> deployment sts -> statefulset ds -> daemonsets svc -> service ing -> ingre..

๋ฐ˜์‘ํ˜•