Skip to content

Commit

Permalink
chore(artifact): add minio and mgmt in configmap (#1015)
Browse files Browse the repository at this point in the history
Because

artifact backend needs the connection info of minio

This commit

adds minio-related connection setting
  • Loading branch information
Yougigun committed Jun 14, 2024
1 parent 7da3431 commit 936e250
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions charts/core/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,10 @@ Allow KubeVersion to be overridden.
{{- define "core.ingress.kubeVersion" -}}
{{- default .Capabilities.KubeVersion.Version .Values.expose.ingress.kubeVersionOverride -}}
{{- end -}}

{{/*
minio
*/}}
{{- define "core.minio" -}}
{{- printf "%s-minio" (include "core.fullname" .) -}}
{{- end -}}
10 changes: 10 additions & 0 deletions charts/core/templates/artifact-backend/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,13 @@ data:
registry:
host: {{ template "core.registry" . }}
port: {{ template "core.registry.port" . }}
minio:
host: {{ template "core.minio" . }}
port: {{ .Values.artifactBackend.minio.port }}
rootuser: {{ .Values.artifactBackend.minio.rootuser }}
rootpwd: {{ .Values.artifactBackend.minio.rootpwd }}
bucketname: {{ .Values.artifactBackend.minio.bucketname }}
mgmtbackend:
host: {{ template "core.mgmtBackend" . }}
publicport: {{ template "core.mgmtBackend.publicPort" . }}
privateport: {{ template "core.mgmtBackend.privatePort" . }}
7 changes: 6 additions & 1 deletion charts/core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,11 @@ artifactBackend:
spec:
minAvailable:
maxUnavailable:
minio:
port: 9000
rootuser: minioadmin
rootpwd: minioadmin
bucketname: instill-ai-knowledge-bases
# -- The configuration of console
console:
# -- Enable console deployment or not
Expand Down Expand Up @@ -1578,4 +1583,4 @@ tags:
model: true
observability: true
prometheusStack: false
milvus: false
milvus: true

0 comments on commit 936e250

Please sign in to comment.