apiVersion: v1
kind: ConfigMap
metadata:
  name: clickhouse-config
data:
  clickhouse-config.xml: |
    <clickhouse>
      <logger>
        <level>warning</level>
        <console>true</console>
      </logger>
      <query_thread_log remove="remove"/>
      <query_log remove="remove"/>
      <text_log remove="remove"/>
      <trace_log remove="remove"/>
      <metric_log remove="remove"/>
      <asynchronous_metric_log remove="remove"/>

      <!-- Update: Required for newer versions of Clickhouse -->
      <session_log remove="remove"/>
      <part_log remove="remove"/>
    </clickhouse>