# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

imageRepo: "ghcr.io/digital-asset/decentralized-canton-sync/docker"

enableHealthProbes: true

# Custom annotations and labels for deployed resources
pod:
  annotations: {}
  labels: {}

defaultJvmOptions: -XX:+UseG1GC -XX:MaxRAMPercentage=75 -XX:InitialRAMPercentage=75 -Dscala.concurrent.context.numThreads=8 -XX:ActiveProcessorCount=8 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/persistent-data
resources:
  limits:
    memory: 32Gi
  requests:
    cpu: "2"
    memory: 16Gi

participantAdminUserNameFrom:
  secretKeyRef:
    key: ledger-api-user
    name: splice-app-sv-ledger-api-auth
    optional: false

metrics:
  enable: false
  release: prometheus-grafana-monitoring
  interval: 30s

persistence:
  secretName: "postgres-secrets"
  databaseName: cantonnet_participant
  port: 5432
  enablePgInitContainer: true
# k8s affinity for all deployed pods (optional)
# affinity:

# k8s nodeSelector for all deployed pods (optional)
# nodeSelector:

# k8s tolerations for all deployed pods (optional)
# tolerations:

extraInitContainers: []

# set to true to disable auth (this is highly insecure)
disableAuth: false
