# RPC-specific values
# Use with: helm install besu-rpc ./helm/besu-network -f values-rpc.yaml

validators:
  enabled: false

sentries:
  enabled: false

rpc:
  enabled: true
  replicas: 3
  nodeSelector:
    pool: rpc
    role: rpc
  resources:
    requests:
      cpu: "8"
      memory: "16Gi"
    limits:
      cpu: "16"
      memory: "32Gi"
  storage:
    storageClass: managed-premium
    size: 500Gi
  config:
    rpcPort: 8545
    wsPort: 8546
    metricsPort: 9545
    syncMode: "SNAP"
    rpcEnabled: true
    rpcHost: "0.0.0.0"
    # CORS and host allowlist - Update after DNS configuration
    # TODO: Restrict to specific domains/hosts in production
    corsOrigins: ["*"]
    hostAllowlist: ["*"]
    rpcMaxLogsRange: 10000
    rpcMaxTraceRange: 10000

pdb:
  rpc:
    minAvailable: 2

service:
  rpc:
    type: ClusterIP

# Gateway configuration
gateway:
  enabled: true
  type: ClusterIP
  annotations:
    service.beta.kubernetes.io/azure-load-balancer-internal: "false"

