Skip to content

Commit d1801b8

Browse files
authored
Update dongtai-worker-report-only.yaml
1 parent ad34f37 commit d1801b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

deploy/kubernetes/helm/templates/deployments/dongtai-worker-report-only.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ spec:
3838
image: {{ .Values.images }}/dongtai-server:{{ .Values.tag }}
3939
command: [ "/bin/sh","/opt/dongtai/deploy/docker/entrypoint.sh" ]
4040
args: [ "worker-report-only" ]
41+
{{- if .Values.storage.persistentVolumeClaim }}
42+
volumeMounts:
43+
- name: {{ template "dongtai.fullname" . }}-log-path
44+
mountPath: /tmp/logstash
45+
{{- end }}
4146
{{- if .Values.httphealthcheck }}
4247
env:
4348
- name: HTTP_HEALTH_CHECK_PORT
@@ -50,4 +55,10 @@ spec:
5055
{{- include "deploy.HttpProbe" . | nindent 10 }}
5156
{{- end }}
5257
{{- include "deploy.config.vo" . | nindent 6 }}
58+
{{- if .Values.storage.persistentVolumeClaim }}
59+
volumes:
60+
- name: {{ template "dongtai.fullname" . }}-log-path
61+
persistentVolumeClaim:
62+
{{ include "deploy.config.persistentVolumeClaim" . }}
63+
{{- end }}
5364
{{- end }}

0 commit comments

Comments
 (0)