Skip to content

Commit

Permalink
[milvus] Support custom annotations in pod deployments (#138)
Browse files Browse the repository at this point in the history
* Support custom annotations in pod deployments

Signed-off-by: Jubing Chen <[email protected]>

* Bump milvus chart version to 4.2.18

Signed-off-by: Jubing Chen <[email protected]>

---------

Signed-off-by: Jubing Chen <[email protected]>
  • Loading branch information
jubingc authored Nov 1, 2024
1 parent 4dfd1e6 commit ac02990
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/milvus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: milvus
appVersion: "2.4.14"
kubeVersion: "^1.10.0-0"
description: Milvus is an open-source vector database built to power AI applications and vector similarity search.
version: 4.2.17
version: 4.2.18
keywords:
- milvus
- elastic
Expand Down
9 changes: 9 additions & 0 deletions charts/milvus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ The following table lists the configurable parameters of the Milvus Proxy compon
| `proxy.http.debugMode.enabled` | Enable debug mode for rest api | `false` |
| `proxy.tls.enabled` | Enable porxy tls connection | `false` |
| `proxy.strategy` | Deployment strategy configuration | RollingUpdate |
| `proxy.annotations` | Additional pod annotations | `{}` |

### Milvus Root Coordinator Deployment Configuration

Expand All @@ -406,6 +407,7 @@ The following table lists the configurable parameters of the Milvus Root Coordin
| `rootCoordinator.service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to lb (if supported) | `[]` |
| `rootCoordinator.service.externalIPs` | Service external IP addresses | `[]` |
| `rootCoordinator.strategy` | Deployment strategy configuration | RollingUpdate |
| `rootCoordinator.annotations` | Additional pod annotations | `{}` |
### Milvus Query Coordinator Deployment Configuration

The following table lists the configurable parameters of the Milvus Query Coordinator component and their default values.
Expand All @@ -430,6 +432,7 @@ The following table lists the configurable parameters of the Milvus Query Coordi
| `queryCoordinator.service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to lb (if supported) | `[]` |
| `queryCoordinator.service.externalIPs` | Service external IP addresses | `[]` |
| `queryCoordinator.strategy` | Deployment strategy configuration | RollingUpdate |
| `queryCoordinator.annotations` | Additional pod annotations | `{}` |
### Milvus Query Node Deployment Configuration

The following table lists the configurable parameters of the Milvus Query Node component and their default values.
Expand All @@ -447,6 +450,7 @@ The following table lists the configurable parameters of the Milvus Query Node c
| `queryNode.profiling.enabled` | Whether to enable live profiling | `false` |
| `queryNode.extraEnv` | Additional Milvus Query Node container environment variables | `[]` |
| `queryNode.strategy` | Deployment strategy configuration | RollingUpdate |
| `queryNode.annotations` | Additional pod annotations | `{}` |

### Milvus Index Coordinator Deployment Configuration

Expand All @@ -472,6 +476,7 @@ The following table lists the configurable parameters of the Milvus Index Coordi
| `indexCoordinator.service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to lb (if supported) | `[]` |
| `indexCoordinator.service.externalIPs` | Service external IP addresses | `[]` |
| `indexCoordinator.strategy` | Deployment strategy configuration | RollingUpdate |
| `indexCoordinator.annotations` | Additional pod annotations | `{}` |
### Milvus Index Node Deployment Configuration

The following table lists the configurable parameters of the Milvus Index Node component and their default values.
Expand All @@ -489,6 +494,7 @@ The following table lists the configurable parameters of the Milvus Index Node c
| `indexNode.profiling.enabled` | Whether to enable live profiling | `false` |
| `indexNode.extraEnv` | Additional Milvus Index Node container environment variables | `[]` |
| `indexNode.strategy` | Deployment strategy configuration | RollingUpdate |
| `indexNode.annotations` | Additional pod annotations | `{}` |

### Milvus Data Coordinator Deployment Configuration

Expand All @@ -514,6 +520,7 @@ The following table lists the configurable parameters of the Milvus Data Coordin
| `dataCoordinator.service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to lb (if supported) | `[]` |
| `dataCoordinator.service.externalIPs` | Service external IP addresses | `[]` |
| `dataCoordinator.strategy` | Deployment strategy configuration | RollingUpdate |
| `dataCoordinator.annotations` | Additional pod annotations | `{}` |
### Milvus Data Node Deployment Configuration

The following table lists the configurable parameters of the Milvus Data Node component and their default values.
Expand All @@ -530,6 +537,7 @@ The following table lists the configurable parameters of the Milvus Data Node co
| `dataNode.profiling.enabled` | Whether to enable live profiling | `false` |
| `dataNode.extraEnv` | Additional Milvus Data Node container environment variables | `[]` |
| `dataNode.strategy` | Deployment strategy configuration | RollingUpdate |
| `dataNode.annotations` | Additional pod annotations | `{}` |

### Milvus Mixture Coordinator Deployment Configuration

Expand All @@ -554,6 +562,7 @@ The following table lists the configurable parameters of the Milvus Mixture Coor
| `mixCoordinator.service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to lb (if supported) | `[]` |
| `mixCoordinator.service.externalIPs` | Service external IP addresses | `[]` |
| `mixCoordinator.strategy` | Deployment strategy configuration | RollingUpdate |
| `mixCoordinator.annotations` | Additional pod annotations | `{}` |
### Pulsar Configuration

This version of the chart includes the dependent Pulsar chart in the charts/ directory.
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/datacoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.datacoord.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.dataCoordinator.annotations }}
{{- toYaml .Values.dataCoordinator.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/datanode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.datanode.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.dataNode.annotations }}
{{- toYaml .Values.dataNode.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/indexcoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.indexcoord.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.indexCoordinator.annotations }}
{{- toYaml .Values.indexCoordinator.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/indexnode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.indexnode.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.indexNode.annotations }}
{{- toYaml .Values.indexNode.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/mixcoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.mixcoord.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.mixCoordinator.annotations }}
{{- toYaml .Values.mixCoordinator.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.proxy.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.proxy.annotations }}
{{- toYaml .Values.proxy.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/querycoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.querycoord.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.queryCoordinator.annotations }}
{{- toYaml .Values.queryCoordinator.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/querynode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.querynode.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.queryNode.annotations }}
{{- toYaml .Values.queryNode.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/milvus/templates/rootcoord-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
pyroscope.io/scrape: "true"
pyroscope.io/application-name: {{ template "milvus.rootcoord.fullname" . }}
pyroscope.io/port: "9091"
{{- end }}
{{- if .Values.rootCoordinator.annotations }}
{{- toYaml .Values.rootCoordinator.annotations | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{ include "milvus.ud.annotations" . | indent 8 }}
Expand Down
9 changes: 9 additions & 0 deletions charts/milvus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ proxy:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

rootCoordinator:
enabled: false
Expand All @@ -299,6 +300,7 @@ rootCoordinator:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

service:
port: 53100
Expand All @@ -324,6 +326,7 @@ queryCoordinator:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

service:
port: 19531
Expand Down Expand Up @@ -355,6 +358,7 @@ queryNode:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

indexCoordinator:
enabled: false
Expand All @@ -374,6 +378,7 @@ indexCoordinator:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

service:
port: 31000
Expand Down Expand Up @@ -404,6 +409,7 @@ indexNode:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

dataCoordinator:
enabled: false
Expand All @@ -423,6 +429,7 @@ dataCoordinator:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

service:
port: 13333
Expand All @@ -446,6 +453,7 @@ dataNode:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

## mixCoordinator contains all coord
## If you want to use mixcoord, enable this and disable all of other coords
Expand All @@ -467,6 +475,7 @@ mixCoordinator:
# Deployment strategy, default is RollingUpdate
# Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment
strategy: {}
annotations: {}

service:
annotations: {}
Expand Down

0 comments on commit ac02990

Please sign in to comment.