From 8c48e26a47a68cee0a27bef336173a23bfd124cd Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Thu, 20 Jun 2024 15:14:44 +0900 Subject: [PATCH] fix: Run milvus deployment Signed-off-by: Chris Butler --- .../milvus/templates/milvus-deployment.yaml | 61 +++++++++++-------- charts/all/milvus/templates/milvus-eso.yaml | 18 ++++++ 2 files changed, 52 insertions(+), 27 deletions(-) create mode 100644 charts/all/milvus/templates/milvus-eso.yaml diff --git a/charts/all/milvus/templates/milvus-deployment.yaml b/charts/all/milvus/templates/milvus-deployment.yaml index 2f02786..9891e4e 100644 --- a/charts/all/milvus/templates/milvus-deployment.yaml +++ b/charts/all/milvus/templates/milvus-deployment.yaml @@ -1,27 +1,34 @@ -# apiVersion: milvus.io/v1beta1 -# kind: Milvus -# metadata: -# name: milvus-test -# namespace: milvus -# labels: -# app: milvus -# spec: -# config: {} - -# dependencies: -# storage: -# external: -# type: s3 -# endpoint: s3.amazonaws.com - - -# etcd: -# inCluster: -# values: -# replicaCount: 3 -# resources: -# limits: -# cpu: 1 -# memory: 4Gi -# deletionPolicy: Delete -# pvcDeletion: true \ No newline at end of file +apiVersion: milvus.io/v1beta1 +kind: Milvus +metadata: + name: milvus-test + namespace: milvus + labels: + app: milvus +spec: + config: {} + minio: + # your bucket name + bucketName: milvus + # Optional, config the prefix of the bucket milvus will use + rootPath: test-v1 + useSSL: true + dependencies: + storage: + # enable external object storage + external: true + type: S3 # MinIO | S3 + # the endpoint of AWS S3 + endpoint: s3.openshift-storage.svc:443 + # the secret storing the access key and secret key + secretRef: "milvus-obc-clean" + etcd: + inCluster: + values: + replicaCount: 3 + resources: + limits: + cpu: 1 + memory: 4Gi + deletionPolicy: Delete + pvcDeletion: true \ No newline at end of file diff --git a/charts/all/milvus/templates/milvus-eso.yaml b/charts/all/milvus/templates/milvus-eso.yaml new file mode 100644 index 0000000..50283c5 --- /dev/null +++ b/charts/all/milvus/templates/milvus-eso.yaml @@ -0,0 +1,18 @@ +--- +apiVersion: "external-secrets.io/v1beta1" +kind: ExternalSecret +metadata: + name: milvus-obc-eso + namespace: milvus +spec: + refreshInterval: 15s + secretStoreRef: + name: {{ .Values.secretStore.name }} + kind: {{ .Values.secretStore.kind }} + target: + name: milvus-obc-clean + template: + type: Opaque + dataFrom: + - extract: + key: 'secret/data/global/milvus-s3'