openebs - deptno/deptno.github.io GitHub Wiki

openebs

install

kubectl apply -f https://raw.githubusercontent.com/openebs/charts/gh-pages/openebs-operator.yaml
kubectl apply -f https://github.com/openebs/charts/blob/gh-pages/openebs-operator-lite.yaml

kubectl get sc 둜 storage class 생성 확인 κ°€λŠ₯ openebs namespace κ°€ ν•¨κ»˜ 생성됨 이후 pv 생성

usage

  • pvc 생성 ν›„ Pending μƒνƒœλŠ” 정상이며 이λ₯Ό μ†ŒλΉ„ν•  νŒŒλ“œκ°€ 마운트 ν•΄μ•Όμ§€ Bound μƒνƒœκ°€ λœλ‹€
  • 이 λ•Œκ°€ 되면 kubectl get pv 둜 persistent volume 을 확인 κ°€λŠ₯
  • pvc λ₯Ό μ‚­μ œν•˜λ©΄ pv 도 ν•¨κ²Œ μ‚­μ œλœλ‹€. κΈ°λ³Έ reclaim 정책이 delete 이기 λ•Œλ¬ΈμΈλ° λ°”κΎΈλ©΄ μˆ˜λ™ pv μ‚­μ œ κ°€λŠ₯
  • openebs λŠ” host node 에 pv κ°€ μ‘΄μž¬ν•˜κΈ° λ•Œλ¬Έμ— bound 된 pvc κ°€ μžˆλŠ” pod λŠ” λ‹€λ₯Έ λ…Έλ“œμ—μ„œ 뜰 수 μ—†λ‹€
  • mount path λŠ” /var/openebs/local 둜 λ³΄μž„

option

  • openebs-device - mount λ˜μ§€ μ•Šμ€ device λ₯Ό μ‚¬μš©
  • openebs-hostpath - νŠΉμ • hostpath λ₯Ό μ‚¬μš©

μ°Έκ³ 

  • capacity 에 μ˜ν•œ μš©λŸ‰ μ œν•œ μ΄μƒμœΌλ‘œ 계속 데이터가 μŒ“μž„ 20M μ„€μ •ν›„ 34M 확인

error

pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..

volumeName 을 μ§€μ •ν•˜λ©΄ νŒŒλ“œμ— λΆ™μ§€ λͺ»ν•œλ‹€. μžλ™μœΌλ‘œ ν• λ‹Ήν•˜λ„λ£© λ‘μž

link