Skip to content

Commit

Permalink
Merge branch 'master' into add-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mchtech committed Jul 17, 2024
2 parents a023c09 + 0f54460 commit d22ce38
Show file tree
Hide file tree
Showing 16 changed files with 167 additions and 136 deletions.
5 changes: 3 additions & 2 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ filters:
- jeffoverflow
- zwd1208
- loveeachday
- haorenfsa
- yellow-shine
reviewers:
- jeffoverflow
- zwd1208
- loveeachday
- haorenfsa
4 changes: 2 additions & 2 deletions charts/milvus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
name: milvus
appVersion: "2.4.5"
appVersion: "2.4.6"
kubeVersion: "^1.10.0-0"
description: Milvus is an open-source vector database built to power AI applications and vector similarity search.
version: 4.1.34
version: 4.2.0
keywords:
- milvus
- elastic
Expand Down
5 changes: 3 additions & 2 deletions charts/milvus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ In case you want to use a different `secretName` or mount path inside pod, modif

## Milvus with External Object Storage

As of https://github.com/minio/minio/releases/tag/RELEASE.2022-10-29T06-21-33Z, the MinIO Gateway and the related filesystem mode code have been removed. It is now recommended to utilize the `externalS3` configuration for integrating with various object storage services. Notably, Milvus now provides support for popular object storage platforms such as AWS S3, GCP GCS, Azure Blob, Aliyun OSS and Tencent COS.
As of https://github.com/minio/minio/releases/tag/RELEASE.2022-10-29T06-21-33Z, the MinIO Gateway and the related filesystem mode code have been removed. It is now recommended to utilize the `externalS3` configuration for integrating with various object storage services. Notably, Milvus now provides support for popular object storage platforms such as AWS S3, GCP GCS, Azure Blob, Aliyun OSS and Tencent COS.

The recommended configuration option for `externalS3.cloudProvider` includes the following choices: `aws`, `gcp`, `azure`, `aliyun`, and `tencent`. Here's an example to use AWS S3 for Milvus object storage:

Expand Down Expand Up @@ -260,12 +260,13 @@ The following table lists the configurable parameters of the Milvus Service and
|-------------------------------------------|-----------------------------------------------|---------------------------------------------------------|
| `cluster.enabled` | Enable or disable Milvus Cluster mode | `true` |
| `image.all.repository` | Image repository | `milvusdb/milvus` |
| `image.all.tag` | Image tag | `v2.4.5` |
| `image.all.tag` | Image tag | `v2.4.6` |
| `image.all.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.all.pullSecrets` | Image pull secrets | `{}` |
| `image.tools.repository` | Config image repository | `milvusdb/milvus-config-tool` |
| `image.tools.tag` | Config image tag | `v0.1.2` |
| `image.tools.pullPolicy` | Config image pull policy | `IfNotPresent` |
| `customConfigMap` | User specified ConfigMap for configuration |
| `extraConfigFiles` | Extra config to override default milvus.yaml | `user.yaml:` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Port where service is exposed | `19530` |
Expand Down
12 changes: 10 additions & 2 deletions charts/milvus/templates/config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ minio:
rootPath: {{ .Values.externalS3.rootPath }}
useIAM: {{ .Values.externalS3.useIAM }}
cloudProvider: {{ .Values.externalS3.cloudProvider }}
iamEndpoint: {{ .Values.externalS3.iamEndpoint }}
region: {{ .Values.externalS3.region }}
{{- if .Values.minio.useIAM }}
iamEndpoint: {{ .Values.minio.iamEndpoint }}
{{- end }}
{{- if ne .Values.minio.region "" }}
region: {{ .Values.minio.region }}
{{- end }}
useVirtualHost: {{ .Values.externalS3.useVirtualHost }}
{{- else }}
{{- if contains .Values.minio.name .Release.Name }}
Expand All @@ -60,8 +64,12 @@ minio:
bucketName: {{ .Values.minio.bucketName }}
rootPath: {{ .Values.minio.rootPath }}
useIAM: {{ .Values.minio.useIAM }}
{{- if .Values.minio.useIAM }}
iamEndpoint: {{ .Values.minio.iamEndpoint }}
{{- end }}
{{- if ne .Values.minio.region "" }}
region: {{ .Values.minio.region }}
{{- end }}
useVirtualHost: {{ .Values.minio.useVirtualHost }}
{{- end }}

Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# If customConfigMap is not set, this ConfigMap will be redendered.
{{- if not .Values.customConfigMap }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -11,3 +13,4 @@ data:
{{ $key }}: |-
{{ $value | indent 4 }}
{{- end }}
{{- end }}
25 changes: 13 additions & 12 deletions charts/milvus/templates/datacoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,14 @@ spec:
- mountPath: /milvus/tools
name: tools
{{- end }}
- name: config
command:
- /cp
- /run-helm.sh,/merge
- /milvus/tools/run-helm.sh,/milvus/tools/merge
image: "{{ .Values.image.tools.repository }}:{{ .Values.image.tools.tag }}"
imagePullPolicy: {{ .Values.image.tools.pullPolicy}}
volumeMounts:
- mountPath: /milvus/tools
name: tools
containers:
- name: datacoord
image: "{{ .Values.image.all.repository }}:{{ .Values.image.all.tag }}"
imagePullPolicy: {{ .Values.image.all.pullPolicy }}
{{- if .Values.dataCoordinator.heaptrack.enabled }}
args: [ "/milvus/tools/run-helm.sh", "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "datacoord" ]
args: [ "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "datacoord" ]
{{- else }}
args: [ "/milvus/tools/run-helm.sh", "milvus", "run", "datacoord" ]
args: [ "milvus", "run", "datacoord" ]
{{- end }}
env:
{{- if .Values.dataCoordinator.heaptrack.enabled }}
Expand Down Expand Up @@ -122,6 +112,12 @@ spec:
resources:
{{- toYaml .Values.dataCoordinator.resources | nindent 10 }}
volumeMounts:
{{- if .Values.customConfigMap }}
- name: milvus-config
mountPath: /milvus/configs/user.yaml
subPath: milvus.yaml
readOnly: true
{{- else }}
- name: milvus-config
mountPath: /milvus/configs/default.yaml
subPath: default.yaml
Expand All @@ -130,6 +126,7 @@ spec:
mountPath: /milvus/configs/user.yaml
subPath: user.yaml
readOnly: true
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
mountPath: {{ .Values.log.persistence.mountPath | quote }}
Expand Down Expand Up @@ -166,7 +163,11 @@ spec:
volumes:
- name: milvus-config
configMap:
{{- if .Values.customConfigMap }}
name: {{ .Values.customConfigMap }}
{{- else }}
name: {{ template "milvus.fullname" . }}
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
persistentVolumeClaim:
Expand Down
25 changes: 13 additions & 12 deletions charts/milvus/templates/datanode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,14 @@ spec:
- mountPath: /milvus/tools
name: tools
{{- end }}
- name: config
command:
- /cp
- /run-helm.sh,/merge
- /milvus/tools/run-helm.sh,/milvus/tools/merge
image: "{{ .Values.image.tools.repository }}:{{ .Values.image.tools.tag }}"
imagePullPolicy: {{ .Values.image.tools.pullPolicy}}
volumeMounts:
- mountPath: /milvus/tools
name: tools
containers:
- name: datanode
image: "{{ .Values.image.all.repository }}:{{ .Values.image.all.tag }}"
imagePullPolicy: {{ .Values.image.all.pullPolicy }}
{{- if .Values.dataNode.heaptrack.enabled }}
args: [ "/milvus/tools/run-helm.sh", "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "datanode" ]
args: [ "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "datanode" ]
{{- else }}
args: [ "/milvus/tools/run-helm.sh", "milvus", "run", "datanode" ]
args: [ "milvus", "run", "datanode" ]
{{- end }}
env:
{{- if .Values.dataNode.heaptrack.enabled }}
Expand Down Expand Up @@ -118,6 +108,12 @@ spec:
resources:
{{- toYaml .Values.dataNode.resources | nindent 10 }}
volumeMounts:
{{- if .Values.customConfigMap }}
- name: milvus-config
mountPath: /milvus/configs/user.yaml
subPath: milvus.yaml
readOnly: true
{{- else }}
- name: milvus-config
mountPath: /milvus/configs/default.yaml
subPath: default.yaml
Expand All @@ -126,6 +122,7 @@ spec:
mountPath: /milvus/configs/user.yaml
subPath: user.yaml
readOnly: true
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
mountPath: {{ .Values.log.persistence.mountPath | quote }}
Expand Down Expand Up @@ -161,7 +158,11 @@ spec:
volumes:
- name: milvus-config
configMap:
{{- if .Values.customConfigMap }}
name: {{ .Values.customConfigMap }}
{{- else }}
name: {{ template "milvus.fullname" . }}
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
persistentVolumeClaim:
Expand Down
25 changes: 13 additions & 12 deletions charts/milvus/templates/indexcoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,14 @@ spec:
- mountPath: /milvus/tools
name: tools
{{- end }}
- name: config
command:
- /cp
- /run-helm.sh,/merge
- /milvus/tools/run-helm.sh,/milvus/tools/merge
image: "{{ .Values.image.tools.repository }}:{{ .Values.image.tools.tag }}"
imagePullPolicy: {{ .Values.image.tools.pullPolicy}}
volumeMounts:
- mountPath: /milvus/tools
name: tools
containers:
- name: indexcoord
image: "{{ .Values.image.all.repository }}:{{ .Values.image.all.tag }}"
imagePullPolicy: {{ .Values.image.all.pullPolicy }}
{{- if .Values.indexCoordinator.heaptrack.enabled }}
args: [ "/milvus/tools/run-helm.sh", "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "indexcoord" ]
args: [ "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "indexcoord" ]
{{- else }}
args: [ "/milvus/tools/run-helm.sh", "milvus", "run", "indexcoord" ]
args: [ "milvus", "run", "indexcoord" ]
{{- end }}
env:
{{- if .Values.indexCoordinator.heaptrack.enabled }}
Expand Down Expand Up @@ -122,6 +112,12 @@ spec:
resources:
{{- toYaml .Values.indexCoordinator.resources | nindent 10 }}
volumeMounts:
{{- if .Values.customConfigMap }}
- name: milvus-config
mountPath: /milvus/configs/user.yaml
subPath: milvus.yaml
readOnly: true
{{- else }}
- name: milvus-config
mountPath: /milvus/configs/default.yaml
subPath: default.yaml
Expand All @@ -130,6 +126,7 @@ spec:
mountPath: /milvus/configs/user.yaml
subPath: user.yaml
readOnly: true
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
mountPath: {{ .Values.log.persistence.mountPath | quote }}
Expand Down Expand Up @@ -166,7 +163,11 @@ spec:
volumes:
- name: milvus-config
configMap:
{{- if .Values.customConfigMap }}
name: {{ .Values.customConfigMap }}
{{- else }}
name: {{ template "milvus.fullname" . }}
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
persistentVolumeClaim:
Expand Down
25 changes: 13 additions & 12 deletions charts/milvus/templates/indexnode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,14 @@ spec:
- mountPath: /milvus/tools
name: tools
{{- end }}
- name: config
command:
- /cp
- /run-helm.sh,/merge
- /milvus/tools/run-helm.sh,/milvus/tools/merge
image: "{{ .Values.image.tools.repository }}:{{ .Values.image.tools.tag }}"
imagePullPolicy: {{ .Values.image.tools.pullPolicy}}
volumeMounts:
- mountPath: /milvus/tools
name: tools
containers:
- name: indexnode
image: "{{ .Values.image.all.repository }}:{{ .Values.image.all.tag }}"
imagePullPolicy: {{ .Values.image.all.pullPolicy }}
{{- if .Values.indexNode.heaptrack.enabled }}
args: [ "/milvus/tools/run-helm.sh", "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "indexnode" ]
args: [ "/milvus/tools/heaptrack/bin/heaptrack", "milvus", "run", "indexnode" ]
{{- else }}
args: [ "/milvus/tools/run-helm.sh", "milvus", "run", "indexnode" ]
args: [ "milvus", "run", "indexnode" ]
{{- end }}
env:
{{- if .Values.indexNode.heaptrack.enabled }}
Expand Down Expand Up @@ -124,6 +114,12 @@ spec:
resources:
{{- toYaml .Values.indexNode.resources | nindent 10 }}
volumeMounts:
{{- if .Values.customConfigMap }}
- name: milvus-config
mountPath: /milvus/configs/user.yaml
subPath: milvus.yaml
readOnly: true
{{- else }}
- name: milvus-config
mountPath: /milvus/configs/default.yaml
subPath: default.yaml
Expand All @@ -132,6 +128,7 @@ spec:
mountPath: /milvus/configs/user.yaml
subPath: user.yaml
readOnly: true
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
mountPath: {{ .Values.log.persistence.mountPath | quote }}
Expand Down Expand Up @@ -173,7 +170,11 @@ spec:
volumes:
- name: milvus-config
configMap:
{{- if .Values.customConfigMap }}
name: {{ .Values.customConfigMap }}
{{- else }}
name: {{ template "milvus.fullname" . }}
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
persistentVolumeClaim:
Expand Down
27 changes: 14 additions & 13 deletions charts/milvus/templates/mixcoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,14 @@ spec:
- mountPath: /milvus/tools
name: tools
{{- end }}
- name: config
command:
- /cp
- /run-helm.sh,/merge
- /milvus/tools/run-helm.sh,/milvus/tools/merge
image: "{{ .Values.image.tools.repository }}:{{ .Values.image.tools.tag }}"
imagePullPolicy: {{ .Values.image.tools.pullPolicy}}
volumeMounts:
- mountPath: /milvus/tools
name: tools
containers:
- name: mixcoord
image: "{{ .Values.image.all.repository }}:{{ .Values.image.all.tag }}"
imagePullPolicy: {{ .Values.image.all.pullPolicy }}
{{- if .Values.mixCoordinator.heaptrack.enabled }}
args: [ "/milvus/tools/heaptrack/bin/heaptrack", "/milvus/tools/run-helm.sh", "milvus", "run", "mixture", "-rootcoord", "-querycoord", "-datacoord", "-indexcoord" ]
{{- else }}
args: [ "/milvus/tools/run-helm.sh", "milvus", "run", "mixture", "-rootcoord", "-querycoord", "-datacoord", "-indexcoord" ]
{{- else }}
args: [ "milvus", "run", "mixture", "-rootcoord", "-querycoord", "-datacoord", "-indexcoord" ]
{{- end }}
env:
{{- if .Values.mixCoordinator.heaptrack.enabled }}
Expand Down Expand Up @@ -119,6 +109,12 @@ spec:
resources:
{{- toYaml .Values.mixCoordinator.resources | nindent 10 }}
volumeMounts:
{{- if .Values.customConfigMap }}
- name: milvus-config
mountPath: /milvus/configs/user.yaml
subPath: milvus.yaml
readOnly: true
{{- else }}
- name: milvus-config
mountPath: /milvus/configs/default.yaml
subPath: default.yaml
Expand All @@ -127,6 +123,7 @@ spec:
mountPath: /milvus/configs/user.yaml
subPath: user.yaml
readOnly: true
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
mountPath: {{ .Values.log.persistence.mountPath | quote }}
Expand Down Expand Up @@ -163,12 +160,16 @@ spec:
volumes:
- name: milvus-config
configMap:
{{- if .Values.customConfigMap }}
name: {{ .Values.customConfigMap }}
{{- else }}
name: {{ template "milvus.fullname" . }}
{{- end }}
{{- if .Values.log.persistence.enabled }}
- name: milvus-logs-disk
persistentVolumeClaim:
claimName: {{ .Values.log.persistence.persistentVolumeClaim.existingClaim | default (printf "%s-logs" (include "milvus.fullname" . | trunc 58)) }}
{{- end }}
- name: tools
emptyDir: {}
{{- end }}
{{- end }}
Loading

0 comments on commit d22ce38

Please sign in to comment.