From 03779480c02193950e88b6c3443d68a5294d9302 Mon Sep 17 00:00:00 2001 From: Cloud User Date: Wed, 25 Feb 2026 14:52:14 +0900 Subject: [PATCH] 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 --- .dvc/.gitignore | 3 +++ .dvc/config | 4 ++++ .dvcignore | 3 +++ README.md | 29 +++++++++++++++++++++++++---- config.yaml | 8 +++++--- 5 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 .dvc/.gitignore create mode 100644 .dvc/config create mode 100644 .dvcignore diff --git a/.dvc/.gitignore b/.dvc/.gitignore new file mode 100644 index 0000000..528f30c --- /dev/null +++ b/.dvc/.gitignore @@ -0,0 +1,3 @@ +/config.local +/tmp +/cache diff --git a/.dvc/config b/.dvc/config new file mode 100644 index 0000000..6d08e88 --- /dev/null +++ b/.dvc/config @@ -0,0 +1,4 @@ +[core] + remote = nas +['remote "nas"'] + url = /ainas/dvc-storage diff --git a/.dvcignore b/.dvcignore new file mode 100644 index 0000000..5197305 --- /dev/null +++ b/.dvcignore @@ -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 diff --git a/README.md b/README.md index ffa2475..1ff3442 100644 --- a/README.md +++ b/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가 감시) diff --git a/config.yaml b/config.yaml index d215c5d..660e213 100644 --- a/config.yaml +++ b/config.yaml @@ -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: