[k8s] kind๋กœ Kubernetes ์‹ค์Šต ํ™˜๊ฒฝ ๊ตฌ์„ฑํ•˜๊ธฐ
ยท
Cloud/Kubernetes
Kind๋ž€?Kind๋Š” ๋กœ์ปฌ ์ปดํ“จํ„ฐ ํ™˜๊ฒฝ์— ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ์†์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ์„ค์น˜ํ•˜๊ธฐ ์œ„ํ•ด ๋งŒ๋“ค์–ด์ง„ ๋„๊ตฌ์ž…๋‹ˆ๋‹ค.Kind๋Š” Go ์–ธ์–ด๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์œผ๋ฉฐ, Docker์ด๋ฏธ์ง€๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ kubeadm์„ ์ด์šฉํ•˜์—ฌ ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ๋ฐฐํฌํ•ฉ๋‹ˆ๋‹ค.์ž์„ธํ•œ ๋‚ด์šฉ์€ ์œ„ ์ด๋ฏธ์ง€๋ฅผ ํ†ตํ•ด kind ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์—์„œ ํ™•์ธํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.Kind ์„ค์น˜ํ•˜๊ธฐ์„ค์น˜ ๊ฐ€์ด๋“œ ์›๋ณธ URL : https://kind.sigs.k8s.io/docs/user/quick-start/#installationMacOSbrew install kindWindowschoco install kind# 25.08.08 ์ถ”๊ฐ€winget install kubernetes.kindLinuxcurl.exe -Lo kind-windows-amd64.exe https://k..
03 Docker ์ด๋ฏธ์ง€ ๊ด€๋ฆฌ
ยท
Cloud/Docker
โ€ป '์‹œ์ž‘ํ•˜์„ธ์š”! ๋„์ปค/์ฟ ๋ฒ„๋„คํ‹ฐ์Šค' ์ฑ…๊ณผ ๊ต์œก์„ ํ†ตํ•ด ๋“ค์€ ๋‚ด์šฉ, ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ํ† ๋Œ€๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.  01 Docker ์„ค์น˜ํ•˜๊ธฐโ€ป์ด ๊ธ€์€ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์— ๋งž์ถฐ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.Docker ์„ค์น˜Windows Docker Desktop: The #1 Containerization Tool for Developers | DockerDocker Desktop is collaborative containerization software for developers. Get started and download Dockerlucy-devblog.tistory.com์ด์ „ ๊ฒŒ์‹œ๋ฌผ์„ ์ฐธ๊ณ ํ•˜์—ฌ ๋จผ์ € Docker๋ฅผ ์„ค์น˜ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.Docker ์„ค์น˜๊ฐ€ ๋๋‚ฌ์œผ๋ฉด ์ด์ œ๋ถ€ํ„ฐ ๋„์ปค์—์„œ ์‚ฌ์šฉํ•˜๋Š” ๋ช…๋ น์–ด๋“ค์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์˜ค๋Š˜์€ ์ด๋ฏธ์ง€..
02 Docker๋ž€?
ยท
Cloud/Docker
โ€ป '์‹œ์ž‘ํ•˜์„ธ์š”! ๋„์ปค/์ฟ ๋ฒ„๋„คํ‹ฐ์Šค' ์ฑ…๊ณผ ๊ต์œก์„ ํ†ตํ•ด ๋“ค์€ ๋‚ด์šฉ, ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ํ† ๋Œ€๋กœ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค.  What is Docker?Get an in-depth overview of the Docker platform including what it can be used for, the architecture it employs, and its underlying technology.docs.docker.com๋„์ปค ๋ช…๋ น์–ด๋ฅผ ๊ณต๋ถ€ํ•˜๊ธฐ ์ „ ์šฐ์„  ์ปจํ…Œ์ด๋„ˆ์™€ ๋„์ปค์— ๋Œ€ํ•ด ๋จผ์ € ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.์ปจํ…Œ์ด๋„ˆ๋ž€ ๋ฌด์—‡์ผ๊นŒ์š”?์ปจํ…Œ์ด๋„ˆ๋Š” ๋‹จ์ผ OS ์ปค๋„์—์„œ ๋‹ค๋ฅธ ํ”„๋กœ์„ธ์Šค์— ์˜ํ–ฅ์„ ๋ฐ›์ง€ ์•Š๊ณ  ๋…๋ฆฝ์ ์œผ๋กœ ์‹คํ–‰๋˜๋Š” ํ”„๋กœ์„ธ์Šค ์ƒํƒœ๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ๊ตฌํ˜„๋œ ์ปจํ…Œ์ด๋„ˆ๋Š” ๊ฐ€์ƒํ™” ์ƒํƒœ์—์„œ ๋™์ž‘ํ•˜๋Š” ํ”„๋กœ์„ธ์Šค๋ณด๋‹ค ๊ฐ€๋ณ๊ณ  ๋น ๋ฅด๊ฒŒ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡..
01 Docker ์„ค์น˜ํ•˜๊ธฐ
ยท
Cloud/Docker
โ€ป์ด ๊ธ€์€ ์œˆ๋„์šฐ ํ™˜๊ฒฝ์— ๋งž์ถฐ ์ž‘์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.Docker ์„ค์น˜Windows Docker Desktop: The #1 Containerization Tool for Developers | DockerDocker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux.www.docker.com๊ณต๋ถ€ํ•˜๋ฉด์„œ ๋ˆˆ์œผ๋กœ ์ง์ ‘ ๋ณด๊ธฐ ํŽธํ•˜๊ฒŒ ์šด์˜์ฒด์ œ์— ๋งž๋Š” Docker Desktop์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.LinuxWindowํ™˜๊ฒฝ์—์„œ Linux๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด cmd์—์„œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.wsl --install์ดํ›„ ์„ค์ •์€ ์ฐจ๋ก€๋Œ€๋กœ ๋”ฐ..
[k8s] Kubernetes ๋กœ๊ทธ - EFK ๊ตฌ์ถ•
ยท
Cloud/Kubernetes
Kubernetes ๋กœ๊ทธ - EFK ๊ฐœ์š”EFK๋ž€?Elasticsearch+Fluent Bit/Fluentd+Kibana์˜ ์กฐํ•ฉ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ๊ฐ๊ฐ์˜ ์•ž๊ธ€์ž๋ฅผ ๋”ฐ์„œ EFK๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋กœ๊ทธ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘, ์ €์žฅ, ๋ถ„์„ํ•˜๊ณ  ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ์˜คํ”ˆ ์†Œ์Šค ์Šคํƒ์ž…๋‹ˆ๋‹ค.Flunetd์™€ Fluent Bilucy-devblog.tistory.com์ด์ „ ํฌ์ŠคํŠธ์—์„œ EFK์— ๋Œ€ํ•ด ๊ฐ„๋žตํ•˜๊ฒŒ ์„ค๋ช…ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ์ด์ œ๋ถ€ํ„ฐ EFK๋ฅผ ์ง์ ‘ ๊ตฌ์ถ•ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.Fluent Bit ๊ตฌ์„ฑfluent bit๋Š” helm์„ ํ†ตํ•ด ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.helm install์„ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์ „ values.yaml์—์„œ config ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.values.yaml์„ ๋ณด๋ฉด parser๋ถ€๋ถ„์ด ์žˆ์„ํ…๋ฐ ์›ํ•˜๋Š” ๋กœ๊ทธ ํ˜•ํƒœ์— ๋งž๊ฒŒ regex๋ฅผ ์ˆ˜์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค..
[k8s] Kubernetes ๋กœ๊ทธ - EFK ๊ฐœ์š”
ยท
Cloud/Kubernetes
EFK๋ž€?Elasticsearch+Fluent Bit/Fluentd+Kibana์˜ ์กฐํ•ฉ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ๊ฐ๊ฐ์˜ ์•ž๊ธ€์ž๋ฅผ ๋”ฐ์„œ EFK๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋กœ๊ทธ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘, ์ €์žฅ, ๋ถ„์„ํ•˜๊ณ  ์‹œ๊ฐํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ์˜คํ”ˆ ์†Œ์Šค ์Šคํƒ์ž…๋‹ˆ๋‹ค.Flunetd์™€ Fluent Bit๋ž€?Fluentd๋Š” ๋‹ค์–‘ํ•œ ์†Œ์Šค์—์„œ ์—ฌ๋Ÿฌ ๋ชฉ์ ์ง€๋กœ ๋กœ๊ทธ๋ฅผ ์ˆ˜์ง‘, ์ฒ˜๋ฆฌ ๋ฐ ๋ผ์šฐํŒ… ํ•˜๋„๋ก ์„ค๊ณ„๋œ ๊ณต๊ธ‰์—…์ฒด ์ค‘๋ฆฝ์ ์ธ ์˜คํ”ˆ ์†Œ์Šค ๋กœ๊ทธ ์ˆ˜์ง‘๊ธฐ์ž…๋‹ˆ๋‹ค.Fluent Bit๋Š” ์ž„๋ฒ ๋””๋“œ ๋ฆฌ๋ˆ…์Šค, ๊ฒŒ์ดํŠธ์›จ์ด, ์ปจํ…Œ์ด๋„ˆํ™”๋œ ์—์ฝ”์‹œ์Šคํ…œ๊ณผ ๊ฐ™์ด ๊ฐ€๋ณ๊ณ  ๋ฆฌ์†Œ์Šค๊ฐ€ ์ œํ•œ๋œ ํ™˜๊ฒฝ์„ ์œ„ํ•ด ๋ช…์‹œ์ ์œผ๋กœ ์„ค๊ณ„๋œ ๊ณต๊ธ‰์—…์ฒด ์ค‘๋ฆฝ ์˜คํ”ˆ์†Œ์Šค ๋กœ๊ทธ ์ˆ˜์ง‘๊ธฐ์ž…๋‹ˆ๋‹ค. Fluented์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ Fluent Bit์€ ๋‹ค์–‘ํ•œ ์†Œ์Šค์—์„œ ์—ฌ๋Ÿฌ ๋ชฉ์ ์ง€๋กœ ๋กœ๊ทธ๋ฅผ ์ˆ˜์ง‘, ์ฒ˜๋ฆฌ ๋ฐ ๋ผ์šฐํŒ… ํ•˜๋Š” ๋ฐ ๋Šฅ์ˆ™ํ•ฉ๋‹ˆ๋‹ค.Flu..