메뉴 닫기

[Milvus] Milvus 분산 시스템 설치

공식문서

https://milvus.io/docs/ko/prerequisite-helm.md

  • GCP GKE를 통한 설치 예정

하드웨어 요구 사항

소프트웨어 요구 사항

디스크 요구 사항

  • 디스크 성능은 etcd에 매우 중요
  • 로컬 NVMe SSD를 사용할 것을 적극 권장
  • 디스크 성능 젹격 테스트
mkdir test-data
fio --rw=write --ioengine=sync --fdatasync=1 --directory=test-data --size=2200m --bs=2300 --name=mytest

설치 순서

Kubernetes Cluster 생성(GKE)

StorageClass 설치(GKE)

  • GKE는 기본적으로 제공해줌

Milvus 오퍼레이터 설치

  • 설치 방법 : Helm
helm install milvus-operator \
  -n milvus-operator --create-namespace \
  --wait --wait-for-jobs \
  https://github.com/zilliztech/milvus-operator/releases/download/v1.2.0/milvus-operator-1.2.0.tgz
NAME: milvus-operator
LAST DEPLOYED: Thu Jul  2 13:18:40 2025
NAMESPACE: milvus-operator
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Milvus Operator Is Starting, use `kubectl get -n milvus-operator deploy/milvus-operator` to check if its successfully installed
If Operator not started successfully, check the checker's log with `kubectl -n milvus-operator logs job/milvus-operator-checker`
Full Installation doc can be found in https://github.com/zilliztech/milvus-operator/blob/main/docs/installation/installation.md
Quick start with `kubectl apply -f https://raw.githubusercontent.com/zilliztech/milvus-operator/main/config/samples/milvus_minimum.yaml`
More samples can be found in https://github.com/zilliztech/milvus-operator/tree/main/config/samples
CRD Documentation can be found in https://github.com/zilliztech/milvus-operator/tree/main/docs/CR
  • 서비스 확인
kubectl get all -n milvus-operator

Milvus 클러스터 배포

  • 배포
kubectl apply -f https://raw.githubusercontent.com/zilliztech/milvus-operator/main/config/samples/milvus_cluster_default.yaml
  • 서비스 확인
kubectl  get svc
  • 기본적으로 모든 서비스가 ClusterIP 배포됨
  • 변경 하기 위해서는 Milvus Cluster yaml 수정
  • milvus gRPC 테스트 위해서 NodePort 오픈
apiVersion: milvus.io/v1beta1
kind: Milvus
metadata:
  name: my-release
spec:
  mode: cluster
  components:
    proxy:
      serviceType: NodePort
  dependencies: {}
  config: {}
Posted in Kubernetes, milvus

Related Posts