Terraform resource ์ดํดํ๊ธฐ w/AWS VPC
- kkumtree
2023-09-08T22:41:14+09:00
์ด๋ฒ์๋ CloudNet@๋ฅผ ํตํด ํ์ตํ ๋ด์ฉ์ ๊ธฐ๋ฐ์ผ๋ก, AZ๋ฅผ ๋์์ผ๋ก ํ data ์กฐํ AWS VPC ์์ฑ ์์ ๋ก ์ดํด๋ณด๋ output resource ์ด๋ฆ ๋ณ๊ฒฝ ์์ผ๋ก ์์๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค. ๊ต์ฌ๋ก ์ฌ์ฉํ [ํ ๋ผํผ์ผ๋ก ์์ํ๋ IaC] ๋ ์ฐธ๊ณ ํ์์ต๋๋ค. ๊ธฐ๋ณธ ์ค์ aws-cli์ ๋ฆฌ์ ์ ap-northeast-2์ ์ค์ ํ์์ต๋๋ค. $ aws configure list Name Value Type Location ---- ----- ---- -------- profile <not set> None None access_key ****************2U5J shared-credentials-file secret_key ****************Z0co shared-credentials-file region ap-northeast-2 config-file ~/.aws/config 1. data ์กฐํ data๋ ์ฌ์ฉ์๊ฐ ์ ์ํ๋ resource ๋ฐ ๋ฆฌ์์ค์ ๋ํ ์คํ๊ณผ ๋ฐ๋๋ก,
Terraform ์์ํ๊ธฐ w/Minimal Ubuntu
- kkumtree
2023-08-31T22:21:08+09:00
์ด๋ฒ์๋ CloudNet@์์ ์งํํ๋ Terraform ์คํฐ๋(์ดํ, T101)์ ์ฐธ์ฌํ์ต๋๋ค. Terraform์ ์ฐ๋ฉด ์ ์ข์์ง๋ ์์ธํ๊ณ ์ ๋ฌธ์ ์ธ ๊ธ์ด ์์ผ๋ฏ๋ก, ์ฐธ๊ณ ํ์๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค. (๋งํฌ: 44bits) ์์ ์ ํ ๋ผํผ์ ์ผ๋ ์ ์ด ์์ง๋ง, Moduleํ๊ฐ ์ด๋ ต๊ธฐ๋ ํ๊ณ ์ด๋ฒ ๊ธฐํ์ ํ ๋ผํผ ์ ๊ฐ์ ๋ค์ ๋ณต๊ธฐํ๋ ๋ง์์ผ๋ก ์ฐธ์ฌํ์ต๋๋ค. ์ฌ์ฉํ ๊ต์ฌ๋ [ํ ๋ผํผ์ผ๋ก ์์ํ๋ IaC] ์ ๋๋ค. ์ด๋ฒ์๋ Terraform ์ด๊ธฐ ์ ์ ์ ๋ํด, ์ดํด๋ณด๊ณ ์ํ์ผ์ Canonical ๊ณต์ Minimal Ubuntu(ARM64) AMI๋ฅผ ์ค์นํด๋ณด๊ฒ ์ต๋๋ค. Terraform ์ค์น tfenv ์ฌ์ฉ๊ณผ .tf ์์ฑ ๋ฐ๋ผํ๊ธฐ Hello World in terraform Terraform ์จ๋ณด๊ธฐ ์์ผ๋ก ์งํํฉ๋๋ค.
Init Calico from quay registry
- kkumtree
2023-07-25T00:40:14+09:00
Written in 25 July 2023. It could be different when you read this article. Error I met I met error message like Init:ImagePullBackOff when I tried to create calico pod. kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-kube-controllers-xxxxxxxxxx-yyyyy 1/1 Running 1 13h kube-system calico-node-xxxxx 0/1 Init:ImagePullBackOff 0 13h Why it happened Yes, it’s because of changed docker hub policy. Recently, I’m in an environment that about 20~30 people use 4 public IP addresses.
Windows์์ ์ฌ๋ฌ Github ํ ํฐ ๊ด๋ฆฌ
- kkumtree
2023-07-04T09:57:14+09:00
ํ์์๋ Git๊ด๋ฆฌ๋ฅผ terminal์ ํตํด์ ํ๊ณ , ์ฌ๋ฌ SSHํค๋ฅผ ํตํด ์์ ์ ํ๊ธฐ์ .ssh/config๋ฅผ ํตํด ํค ๊ธฐ๋ฐ์ผ๋ก ๊ด๋ฆฌํ๊ณ ์์๋ค. ์ด์ฉ๋ค๋ณด๋, ํ ํฐ ๊ธฐ๋ฐ์ผ๋ก ๊ทธ๊ฒ๋ ์๋์ฐ์์ ๊ด๋ฆฌ๋ฅผ ํด๋ณด๊ฒ ๋์ด์ ๋ ๋ค ์์ํ ์ ๊ทผ์ด๋ผ ์๋ก์ด ์ ์ ์ ์ ์ฉํด๋ณด๊ธฐ๋ก ํ๋ค. VSCode ๊ธฐ๋ฐ์ผ๋ก ์ธํ ํ๊ธฐ์, ๊ทธ๋๋ก ๋ฐ๋ผ์จ๋ค๋ฉด ๋ณ ๋ฌธ์ ์์ด ์ ์ ์ฉ๋ ๊ฒ์ด๋ค. cf. classic token์ด๋ผ ํ ์ง๋ผ๋, ํฐ ์ด์๋ ์์ ๊ฒ์ผ๋ก ์๊ฐ๋๋ค. Git config์ ์ ์ฉ๋ฒ์ git config <parameter>๋ฅผ ํตํด, ์ค์ ๊ฐ์ ๊ตฌ์ฑํ ์ ์๋ค. system > global > local ์์ผ๋ก ์ต์ ์ด override๋๋ค.
Release file for URL is not valid yet ํด๊ฒฐ ๋ฐฉ๋ฒ
- kkumtree
2023-06-29T02:28:34+09:00
์ต๊ทผ WSL๋ฅผ ์ฐ๊ฒ ๋๋ฉด์, ํ ๊ฐ์ง ์ด์๊ฐ ์๊ฒผ๋ค. APT repo๋ฅผ ์ ๋ฐ์ดํธ ํ๋ฉด ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. ์ด๊ฒ์ ๊ฒ ์๋๋ณด๊ณ ํด๊ฒฐ๋ฒ์ ์ ์ด๋ณด๊ณ ์ ํ๋ค. E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/jammy/InRelease is not valid yet (invalid for another 5min 1s). Updates for this repository will not be applied. ์ค๋ฅ ์ฆ์์ ๋ฆด๋ฆฌ์ค ํ์ผ์ด ์กด์ฌํ์ง ์๋๋ฐ, 5๋ถ 1์ด๋์ ์ ํจํ์ง ์๋๋ค๊ณ ํ๋ค. ๋ฌด์จ ๋ง์ธ๊ฐ ์ถ์๋ฐ, 5๋ถ ์๋ค๊ฐ ์ ๋ฐ์ดํธ ํด๋ณด๋ผ๋ ๊ฒ์ด๋ค. ์์ธ ์ค๋ซ๋์ ์ ์ ๋ชจ๋๋ก ๋์ด์ ์๊ฐ ๋๊ธฐํ๊ฐ ์๋ ๊ฒ์ผ๋ก ๋ณด์ธ๋ค.