DKE/Kubernetes
[Kubernetes] local-path-storage 설치하기 / 2023.06.15
강원대목동녀
2023. 6. 15. 16:12
728x90
rook-ceph storageclass는 설치할 때 무슨 문제가 있는지 pv를 자동으로 생성해주지않아서 수동으로 생성해 주어야했다
따라서 local-path-storage를 설치했다
Step 1. local-path-storage 설치하기
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
Step 2. default로 설정하기
# local-path-storage를 default 설정
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
# 기존의 rook-ceph default 해제
kubectl patch storageclass rook-ceph-block -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
728x90