Skip to content
Snippets Groups Projects
Commit 3f42c761 authored by Guillaume Samson's avatar Guillaume Samson
Browse files

swh/storage: update configmap for journal access

parent b1cdb499
No related branches found
No related tags found
No related merge requests found
......@@ -32,4 +32,18 @@ data:
objstorages:
{{ .Values.storage.objstorageConfig }}
{{- end }}
{{- if .Values.storage.journalWriter }}
{{- with .Values.storage.journalWriter }}
journal_writer:
cls: kafka
brokers:
{{- range $broker := .brokers }}
- {{ $broker }}
{{- end}}
prefix: {{ .prefix | default "swh.journal.objects" }}
client_id: {{ .clientId }}
anonymize: {{ .anonymize | default true }}
producer_config: {{ .producerConfig | nindent 10 }}
{{- end }}
{{- end }}
{{- end -}}
......@@ -245,6 +245,22 @@ storage:
# the hostname on which the storage must be reachable
# host: mystorage.localdomain
## if journal access is required
## mandatory values
#journalWriter:
# brokers:
# - kafka1
# - kafka2
# - kafka3
# clientId: swh.storage.journal_writer.storage1
# producerConfig: |-
# message.max.bytes: 1000000000
# item2: value2
# item3: value3
## optional values with their default value
# prefix: swh.journal.objects
# anonymize: true
web:
enabled: false
logLevel: INFO
......
......@@ -199,6 +199,13 @@ storage:
gunicorn:
threads: 4
workers: 8
#journalWriter:
# brokers:
# - journal1.internal.staging.swh.network
# - journal2.internal.staging.swh.network
# clientId: swh.storage.journal_writer.storage
# producerConfig: |-
# message.max.bytes: 1000000000
web:
enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment