Calico ๋ฐ ๋ฉํธ๋ฆญ ์์ง ๊ตฌ์ฑ
- kkumtree
2024-09-15T18:40:22+09:00
CloudNet@์์ ์งํํ๊ณ ์๋ K8s Advanced Network Study(์ดํ, KANS)๋ฅผ ํตํด ํ์ตํ ๋ด์ฉ์ ์ ๋ฆฌํฉ๋๋ค. 1. Calico ์ค์น ์คํฐ๋์์ AWS CF ๋ฐ Calico ์ค์น ์คํฌ๋ฆฝํธ(Manifest)๋ฅผ ์ ๊ณตํ์๊ธฐ์, ์ด ๋ถ๋ถ์ ์ฐธ๊ณ ๋ง ํ์๊ธฐ ๋ฐ๋๋๋ค. CNI๊ฐ ์ค์น๋์ง ์์๊ธฐ์ NotReady ์ํ์ ์๋ค๊ฐ, Calico ์ค์นํ๋ฉด CoreDNS๊ฐ ์ค์ ๋๋ฉฐ, Ready ์ํ๋ก ๋ณ๊ฒฝ๋๋ค. Calico ์ค์น ์ # Control Plane and worker nodes are not ready (โ|HomeLab:default) root@k8s-m:~# kubectl get nodes NAME STATUS ROLES AGE VERSION k8s-m NotReady control-plane 32m v1.30.5 k8s-w0 NotReady <none> 31m v1.
KIND ํบ์๋ณด๊ธฐ
- kkumtree
2024-09-03T21:16:07+09:00
ํบ์๋ณด๋ค(์ฐ๋ฆฌ๋ง์) ๋ ์์ธ๋ก ํ์ค์ด๋ผ๊ณ ํฉ๋๋ค. KIND ์ค์น ์ดํ์ ๊ธฐ๋ณธ์ ์ธ ๋ด์ฉ์ ์ดํด๋ด ๋๋ค. CloudNet@์์ ์งํํ๊ณ ์๋ K8s Advanced Network Study(์ดํ, KANS)๋ฅผ ํตํด ํ์ตํ ๋ด์ฉ์ ์ ๋ฆฌํฉ๋๋ค. 0. $KUBECONFIG $KUBECONFIG ํ๊ฒฝ๋ณ์๊ฐ ์์ ๊ฒฝ์ฐ: ๋ณดํต์ ~/.kube ๋๋ ํ ๋ฆฌ๊ฐ ์์ฑ๋ฉ๋๋ค. ํ์ธํด๋ณด๋, config ๊ฐ๊ณผ ๋๋ถ์ด, cache ๋๋ ํ ๋ฆฌ๋ ํ์ธํ ์ ์์์ต๋๋ค. โฏ find ~/.kube -maxdepth 2 -type f -exec ls -ld "{}" \; -rw------- 1 kkumtree kkumtree 44 Sep 3 21:31 /home/kkumtree/.kube/config โฏ find ~/.kube -maxdepth 2 -type d -exec ls -ld "{}" \; drwxr-x--- 3 kkumtree kkumtree 4096 Sep 3 21:31 /home/kkumtree/.
๋ฆฌ๋ ์ค์ KIND ์ค์นํ๊ธฐ w/golang
- kkumtree
2024-09-02T00:33:19+09:00
Helm ์ค์น ์ถ๊ฐ CloudNet@์์ ์งํํ๊ณ ์๋ K8s Advanced Network Study(์ดํ, KANS)์ ์ฐธ์ฌํ๊ฒ ๋๋ฉด์ ๊ธฐ๋ก์ ๋จ๊ธฐ๊ณ ์์ต๋๋ค. ์ด๋ฒ์๋ kind(Kubernetes IN Docker)๋ฅผ Golang์ ํตํด ์ค์นํ๋ฉด์ ์ฝ๊ฐ์ ์?๋์ด ์์๋ ๋ถ๋ถ๋ง ๋ค๋ฃน๋๋ค. 1. KIND๋? ์๋ ์ฌ์ง์ผ๋ก ๋์ฒดํฉ๋๋ค. ์์ธํ ๋ด์ฉ์ Docs/Initial_design์์ ๋ณผ์ ์์ต๋๋ค. 2. KIND ์ค์นํ๊ธฐ Docs/Quick-start๋ฅผ ์ฐธ๊ณ ํฉ๋๋ค. Linux์ ๊ฒฝ์ฐ, ํจํค์ง ๊ด๋ฆฌ์ ์ค์น๊ฐ ์์ด ๋ฐ์ด๋๋ฆฌ, ํน์ ์์ค๋ก ์ค์นํด์ผ ํฉ๋๋ค. ์๋ ๋ ๋ฌธ์ฅ์ ๋ญ๊ฐ ๋ฐ๋ํ์ฌ Go ์ธ์ด๋ก ์ค์น๋ฅผ ํด๋ณด๊ธฐ๋ก ํ์ต๋๋ค. If you are a go developer you may find the go install option convenient.
Jenkins ์ปจํ ์ด๋์์ Host์ Docker ๋ฐ๋ชฌ ์ฌ์ฉํ๊ธฐ
- kkumtree
2024-09-01T09:02:15+09:00
์ต๊ทผ CloudNet@์์ ์งํํ๊ณ ์๋ K8s Advanced Network Study(์ดํ, KANS)์ ์ฐธ์ฌํ๊ฒ ๋์์ต๋๋ค. ๋์ด๋๋ฅผ ์๊ฐํ๋ฉด KH(Hardcore)NS๊ฐ ๋ ๋ง์๋ณด์ด์ง๋ง… k8s๊ฐ ์๋ ์ธ๊ธฐ๊ฐ ๋ง๊ธฐ๋ ํ์ง๋ง, Pod ๊ฐ ํต์ ์๋ ๋ง์ ์ง์์ด ํฌ์ฌ๋๊ธฐ์ ์ด๋ฒ ๊ธฐํ์ ์ดํด๋ณด๊ธฐ๋ก ํ์ต๋๋ค. ์ฒซ ์ฃผ์ฐจ๋, ๋ฐ๋ก Kubernetes์ ์ง์ ํ์ง ์๊ณ Containerization์ ๋ํ ์ดํด๋ฅผ ๋จผ์ ๋ค๋ค์ฃผ์ จ์ต๋๋ค. ์ฌํ ์ฟ ๋ฒ๋คํฐ์ค ๊ฐ์์ ๋ฌ๋ฆฌ 9์ฃผ ๊ฐ ๋งค์ฃผ ์ผ์์ผ์๋ง ์งํ๋๋ ์ธ์ ์ธ๋ฐ๋, ๊ธฐ๋ฐ ๊ธฐ์ ์ ๋ค์ ์ง์ด์ฃผ์ ์ ๊ฐ์ฌํ์ต๋๋ค. 1. AWS EC2 Instance ์ ์ CloudFormation์ ํตํด, EC2 ๋ฐ ์ ๋ฐ์ฌํญ์ ๊ตฌ์ฑํ์ฌ ์ฃผ์ จ์ต๋๋ค๋ง, ์ทจ๋ฏธ ์ผ์ Terraform ๋ณํ ์์ ์ ํด๋ณด์์ต๋๋ค.
Blog maintanence in 2024
- kkumtree
2024-08-26T00:02:49+09:00
Before starting group study, I decided to update my blog. Very small things, but I have some needs about it. One is GitHub Actions’ dependency update and another is Licences. Cause, Blog is deployed via Github Actions, I need to check dependencies in Github Actions’ workflow. What I use is actions/checkout, actions/setup-go, and actions/setup-node. Name Prev. Version Latest Version Purpose checkout actions/checkoutv3 actions/checkoutv4 Src. and Dest. Branch setup-go actions/setup-go@v4 actions/setup-go@v5 Hugo setup-node actions/setup-node@v3 actions/setup-node@v4 Vanila Framework commit 5d4c9b9 Another thing is Licences.