- Terraform
- OCI ์ธ์ฆํค (
~/.oci/configํ์ผ์ ์ธ์ฆ ์ ๋ณด๊ฐ ์์ด์ผํจ)- oci-cli๋ฅผ ์ค์นํ๊ณ ,
oci session authenticate๋ช ๋ น์ด๋ฅผ ํตํด ๋ฐ๊ธ ๊ฐ๋ฅ
- oci-cli๋ฅผ ์ค์นํ๊ณ ,
- kubectl
- ํ
๋ผํผ ์ค์น ํ์ธ
terraform -v - OCI ์ธ์ฆํค ํ์ธ
oci iam compartment list- ์ ์ปค๋งจ๋๋ก compartment ๋ชฉ๋ก์ ํ์ธํ ์ ์๋์ง ์ฒดํฌ
compartment๋๋ ํ ๋ฆฌ์์oci_identity_compartmentํ ๋ผํผ ๋ฐ์ดํฐ์์ค๋ฅผ ํตํด ๋ณธ์ธ์ compartment๋ฅผ ๊ฐ์ ธ์ค๊ธฐ- ์ถํ ๋ชจ๋ ๋ฆฌ์์ค์์ ์ด compartment์ ID๋ฅผ ์ด์ฉ
network ๋๋ ํ ๋ฆฌ ์ฐธ๊ณ
oke ๋๋ ํ ๋ฆฌ ์ฐธ๊ณ
- Kubernetes๋ฅผ
kubectl์ ํตํด ์ ๊ทผoci_containerengine_cluster_kube_config๋ฐ์ดํฐ ์์ค์์ ์์ฑ๋ kubeconfig์ ์ด์ฉํด๋ ๋๊ณ- oci-cli๋ฅผ ์ด์ฉํด
oci ce cluster create-kubeconfig --cluster-id <id> --file kubeconfig --region ap-seoul-1 --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT์ปค๋งจ๋๋ฅผ ์ณ์ ์์ฑํด๋ ๋๋ค - ์ดํ ์ด kubeconfig์
~/.kube/config์ ๋ฃ์ด์ฃผ๊ฑฐ๋ (๊ธฐ์กด ํ์ผ์ด ๋ฎ์ด์์์ง์ง ์๊ฒ ์กฐ์ฌ),kubectl --kubeconfig <๊ฒฝ๋ก> ์ด์ฉ๊ตฌ๋ฅผ ํตํด ์ ๊ทผํด๋ณด์
- ์ํ ์ฑ ๋ฐฐํฌ
busybox๋๋ ํ ๋ฆฌ ์ฐธ๊ณ