2021.09. ์ด์ฅ์ฌ ๐ง [email protected] ๐ https://github.com/jangjaelee ๐ http://www.awx.kr
์คํ์์ค ๋ถ์ฐ ๋ธ๋ก ์คํ ๋ฆฌ์ง ์์คํ (distributed block storage system) ์๋ฃจ์ Longhorn์ Volume์ ์์ฑํ๊ณ Persistent Volumes (PVs), Persistent Volue Claims (PVCs)๋ฅผ Kubernetes persistent storage resources๋ก ์์ฑ ํ์ฌ POD์์ ๋ณผ๋ฅจ์ ๋ง์ดํธ ํ๋ ๊ฒ์ ๋ชฉํ๋ก ํฉ๋๋ค.
Longhorn Volume์ ์์ฑํ๊ณ Persistent Volumes (PVs) ๋ฐ Persistent Volume Claims (PVCs)๋ฅผ Kubernetes persistent storage๋ก ์์ฑํ POD์ ์์ฑํ Volume์ ๋ง์ดํธ ๋ฐฉ๋ฒ์ ์์ ๋ณด๊ฒ ์ต๋๋ค.
Longhorn์ Kubernetes Persistent Volume์ Access Mode ๋ณ๋ก ๋์๋ฐฉ์ ๋ค๋ฅด๋ฉฐ ๋์ ๋ฐฉ์์ ๋ฐ๋ฅธ Longhorn Engine์ ๋์์ ์๋ ํ ์ด๋ธ์ ์ฐธ์กฐ ํ์ธ์.
The way Longhorn Engine works by Access Modes
Longhorn UI์ ์ ์ํ์ฌ Kubernetes Persistent Storage๋ฅผ ์ํ Longhorn Volume์ ์์ฑ ํฉ๋๋ค.
ReadWriteOnce(RWO)์ ReadWriteMany(RWX)๋ฅผ ์ํ ๋ณผ๋ฅจ์ ๊ฐ๊ฐ ์์ฑ ํฉ๋๋ค.
RWO๋ฅผ ์ํ Longhorn Volume์ Name *"volume-block-rwo"*๊ณผ Size *"10Gi"*๋ฅผ ์ ๋ ฅํ๊ณ Access Mode๋ฅผ ReadWriteOnce๋ก ์ ํํ ๋ณผ๋ฅจ์ ์์ฑ ํฉ๋๋ค. ์ด๋, Frontend๋ ๋ณ๊ฒฝํ์ง ์๊ณ Block Device ์ํ๋ก ์ ์ง ํฉ๋๋ค.
ReadWriteOnce(RWO)๋ฅผ ์ํ ๋ณผ๋ฅจ์ ์์ฑ ์๋ฃ ๋์์ต๋๋ค.
์ถ๊ฐ๋ก RWX๋ฅผ ์ํ ๋ณผ๋ฅจ ์์ฑ์ ์งํ ํฉ๋๋ค. Name *"volume-block-rwx"*๊ณผ Size *"10Gi"*๋ฅผ ์์ฑํ๊ณ Access Mode๋ฅผ ReadWriteMany๋ก ์ ํ ํฉ๋๋ค.