2021.09. ์ด์ฅ์ฌ ๐ง [email protected] ๐ https://github.com/jangjaelee ๐ http://www.awx.kr
์ด ๋ฌธ์๋ Kubernets๋ฅผ ์ํ ๊ฐ๋ณ๊ณ , ์์ ์ , ์ฌ์ฉํ๊ธฐ ์ฌ์ด ์คํ์์ค ๋ถ์ฐ ๋ธ๋ก ์คํ ๋ฆฌ์ง ์์คํ (distributed block storage system)์ค์ ํ๋์ธ Rancher Labs็คพ์ Longhorn์ ์ค์นํ๊ธฐ ์ํ ๊ธฐ๋ณธ์ ์ธ ์ค๋ช ์ ์ ๊ณต ํฉ๋๋ค.
์ฟ ๋ฒ๋คํฐ์ค ํด๋ฌ์คํฐ์ ๊ฐ ๋ ธ๋(์ธ์คํด์ค)๋ ๋ค์์ ํ์ ์กฐ๊ฑด์ด ์ถฉ์กฑ ๋์ด์ผ ํฉ๋๋ค.
์ฟ ๋ฒ๋คํฐ์ค์ ํธํ๋๋ Containr Runtime (Docker v1.13+, containerd v1.3.7+, etc)
Kubernetes v1.18 or later
ํธ์คํธ(host)์ ํ์ผ์์คํ (filesystem)์ผ๋ก ext4, xfs ์ง์
bash, curl, findmnt, grep, awk, blkid, lsblk ๋ช ๋ น์ด๊ฐ ๋ฐ๋์ ํ์
๋จ์ผ ๋ณผ๋ฅจ์ ๋ํด์ ์ฉ๋ ํ์ฅ์ ์ฌ์ฉํ๋ ค๋ฉด ๋ ธ๋(์ธ์คํด์ค)์ ํํฐ์ ์ LVM(Logial Volume Manager) ๊ตฌ์ฑ ํ์
โ https://longhorn.io/docs/1.2.0/best-practices/#disk-space-management
open-iscsi ํ์ํ๋ฉฐ, iscsid ๋ฐ๋ชฌ์ด ๋ชจ๋ ๋ ธ๋(์ธ์คํด์ค)์์ ์คํ ํ์ (Longhorn์ด ์ฟ ๋ฒ๋คํฐ์ค์ PV๋ฅผ ์ ๊ณตํ๊ธฐ ์ํด ๋ ธ๋์ iscsiadm์ ์์กด์ ์ด๋ฉฐ, open-iscsi ์ค์น๋ ์๋ ๋งํฌ ์ฐธ์กฐ ) โ *https://longhorn.io/docs/1.2.0/deploy/install/#installing-open-iscsi*
RWX๋ฅผ ์ง์ํ๊ธฐ ์ํด์๋ ๊ฐ ๋ ธ๋์ NFSv4 client ํ์ํ๋ฉฐ, NFSv4 client ์ค์น๋ ์๋ ๋งํฌ ์ฐธ์กฐ โ *https://longhorn.io/docs/1.2.0/deploy/install/#installing-nfsv4-client*
Mount Propagation ํ์ฑํ ํ์
(Rancher v2.0.7 ์ด์์ผ๋ก Kubernetes cluster๋ฅผ provisioning ํ๋ค๋ฉด Mount Propagation์ ๊ธฐ๋ณธ์ผ๋ก ํ์ฑํ ๋์ด ์์)
โ *https://kubernetes-csi.github.io/docs/deploying.html#enabling-mount-propagation*
โ *https://kubernetes.io/docs/concepts/storage/volumes/#mount-propagation*