Skip to content

Commit

Permalink
[ENH] log service staging (chroma-core#1843)
Browse files Browse the repository at this point in the history
## Description of changes
connect log service in staging
  • Loading branch information
weiligu authored Mar 7, 2024
1 parent 123826f commit 2cbbb2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 11 additions & 3 deletions k8s/distributed-chroma/templates/logservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ spec:
serviceAccountName: logservice-serviceaccount
containers:
- command:
- "logservice"
- "logservice"
- "/bin/sh"
- "-c"
# This has to be one line to be passed into the `exec` env correctly. I truly could not tell you why.
- logservice logservice {{ range $k, $v := .Values.logService.flags }} --{{ $k }}={{ $v }} {{ end }}
env:
{{ range .Values.logService.env }}
- name: {{ .name }}
# TODO properly use flow control here to check which type of value we need.
{{ .value | nindent 14 }}
{{ end }}
image: "{{ .Values.logService.image.repository }}:{{ .Values.logService.image.tag }}"
imagePullPolicy: IfNotPresent
name: logservice
Expand Down Expand Up @@ -47,4 +55,4 @@ metadata:
name: logservice-serviceaccount
namespace: {{ .Values.namespace }}

---
---
4 changes: 3 additions & 1 deletion k8s/distributed-chroma/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ logService:
image:
repository: 'local'
tag: 'coordinator'
env:
flags:

worker:
image:
Expand All @@ -56,4 +58,4 @@ worker:
sysdbMigration:
image:
repository: 'local'
tag: 'migration'
tag: 'migration'

0 comments on commit 2cbbb2c

Please sign in to comment.