Add DVC with NAS remote storage
- Install DVC v3.66.1 and initialize in project - Configure NAS remote: /ainas/dvc-storage (192.168.0.43) - NAS already mounted at /ainas on this host Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e573b9a533
commit
03779480c0
|
|
@ -0,0 +1,3 @@
|
|||
/config.local
|
||||
/tmp
|
||||
/cache
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[core]
|
||||
remote = nas
|
||||
['remote "nas"']
|
||||
url = /ainas/dvc-storage
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Add patterns of files dvc should ignore, which could improve
|
||||
# the performance. Learn more at
|
||||
# https://dvc.org/doc/user-guide/dvcignore
|
||||
29
README.md
29
README.md
|
|
@ -25,7 +25,7 @@ https://gitea.inje-private.com/selee/mlops-architecture
|
|||
| Gitea | installed | 외부 클러스터 |
|
||||
| Gitea Runner | **TODO** | 이 클러스터 (`soo` ns) |
|
||||
| ArgoCD | installed + **repo 연동 완료** | 이 클러스터 (`argocd` ns) |
|
||||
| DVC | **TODO** | 로컬 + NAS |
|
||||
| DVC | **installed** (v3.66.1) | 로컬 + NAS (`/ainas/dvc-storage`) |
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -86,12 +86,32 @@ kubectl get app mlops-architecture -n argocd -o jsonpath='{.status.sync.status}'
|
|||
|
||||
---
|
||||
|
||||
## 4. DVC
|
||||
## 4. DVC (설치 + NAS remote 설정 완료)
|
||||
|
||||
> TODO: 설치 후 아래 내용 업데이트
|
||||
- 버전: v3.66.1
|
||||
- Remote: NAS (`/ainas/dvc-storage`)
|
||||
- NAS 마운트: `192.168.0.43:/GJ_SHARE_FS2/...` → `/ainas`
|
||||
|
||||
```bash
|
||||
# 설치 예정 명령어가 여기에 추가됩니다
|
||||
# 설치
|
||||
sudo apt-get install -y python3-pip
|
||||
pip3 install dvc
|
||||
|
||||
# 초기화
|
||||
dvc init
|
||||
|
||||
# NAS remote 설정 (NAS가 /ainas에 마운트된 상태)
|
||||
sudo mkdir -p /ainas/dvc-storage && sudo chown ubuntu:ubuntu /ainas/dvc-storage
|
||||
dvc remote add -d nas /ainas/dvc-storage
|
||||
|
||||
# 확인
|
||||
dvc remote list
|
||||
dvc version
|
||||
|
||||
# 사용 예시
|
||||
# dvc add data/dataset.csv # 파일 추적
|
||||
# dvc push # NAS로 push
|
||||
# dvc pull # NAS에서 pull
|
||||
```
|
||||
|
||||
---
|
||||
|
|
@ -104,6 +124,7 @@ mlops_architecture/
|
|||
├── .gitignore
|
||||
├── config.yaml # 인프라 구성 정보
|
||||
├── README.md # 설치 가이드 (이 파일)
|
||||
├── .dvc/ # DVC 설정 (remote 등)
|
||||
├── argocd/
|
||||
│ └── application.yaml # ArgoCD Application 정의
|
||||
└── manifests/ # K8s 배포 manifest (ArgoCD가 감시)
|
||||
|
|
|
|||
|
|
@ -37,12 +37,14 @@ components:
|
|||
installed: true
|
||||
|
||||
dvc:
|
||||
version: "" # TODO: 설치 시 채우기
|
||||
version: 3.66.1
|
||||
remote_type: nas
|
||||
remote_name: nas
|
||||
nas_server: 192.168.0.43
|
||||
nas_path: /GJ_SHARE_FS2/afed9d8d-f9c8-4053-aa89-23cdc70938e3
|
||||
mount_point: /mnt/dvc-storage
|
||||
installed: false
|
||||
nas_mount: /ainas # 실제 마운트 포인트
|
||||
dvc_storage: /ainas/dvc-storage
|
||||
installed: true
|
||||
|
||||
# ── 네임스페이스 매핑 ────────────────────────
|
||||
namespaces:
|
||||
|
|
|
|||
Loading…
Reference in New Issue