diff --git a/k8s/distributed-chroma/templates/logservice.yaml b/k8s/distributed-chroma/templates/logservice.yaml index 954383227df..88e4c4aedad 100644 --- a/k8s/distributed-chroma/templates/logservice.yaml +++ b/k8s/distributed-chroma/templates/logservice.yaml @@ -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 @@ -47,4 +55,4 @@ metadata: name: logservice-serviceaccount namespace: {{ .Values.namespace }} ---- \ No newline at end of file +--- diff --git a/k8s/distributed-chroma/values.yaml b/k8s/distributed-chroma/values.yaml index 1c6d94f669c..e30bcb0e58c 100644 --- a/k8s/distributed-chroma/values.yaml +++ b/k8s/distributed-chroma/values.yaml @@ -47,6 +47,8 @@ logService: image: repository: 'local' tag: 'coordinator' + env: + flags: worker: image: @@ -56,4 +58,4 @@ worker: sysdbMigration: image: repository: 'local' - tag: 'migration' \ No newline at end of file + tag: 'migration'