# Default values for llama-distributed.
# This is a YAML-formatted file.

replicaCount: 2

image:
  repository: ghcr.io/example/llama-distributed
  pullPolicy: IfNotPresent
  tag: "latest"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# API key for authenticating clients
# Default is empty, must be provided in production
apiKey: ""

# Log level
logLevel: "INFO"

# TEE configuration
tee:
  enabled: false
  # tee-key will be auto-generated if not provided

# Prometheus integration
prometheus:
  enabled: true
  serverAddress: "http://prometheus-server.monitoring:9090"

# KEDA integration
keda:
  enabled: true

autoscaling:
  minReplicas: 2
  maxReplicas: 10
  pollingInterval: 30
  cooldownPeriod: 300
  prometheus:
    serverAddress: "http://prometheus-server.monitoring:9090"
    threshold: "5"
  cpu:
    targetUtilization: "80"

# Energy-aware load balancing configuration
energyAware:
  enabled: true
  energyWeight: 0.3
  performanceWeight: 0.7

# Query optimization parameters
queryOptimizer:
  modelPath: ""  # Path to optimizer model, if available

# Neural router parameters
neuralRouter:
  modelPath: ""  # Path to router model, if available

# Federated ranker parameters
federatedRanker:
  rankingMethod: "distance"  # One of: distance, score, hybrid, custom
  addDPNoise: false
  noiseScale: 0.1

# Additional environment variables
extraEnv: []
  # - name: EXAMPLE_VAR
  #   value: "example-value"

# Resource requests and limits
resources:
  limits:
    cpu: 1000m
    memory: 1Gi
  requests:
    cpu: 100m
    memory: 256Mi

# Persistence configuration
persistence:
  enabled: false
  size: 1Gi
  storageClass: ""

# Pod security context
podSecurityContext:
  fsGroup: 1000

# Container security context
securityContext:
  capabilities:
    drop:
      - ALL
  readOnlyRootFilesystem: true
  runAsNonRoot: true
  runAsUser: 1000

# Service configuration
service:
  type: ClusterIP
  port: 80

# Ingress configuration
ingress:
  enabled: false
  className: ""
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: chart-example.local
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

# Pod annotations
podAnnotations: {}

# Node selector
nodeSelector: {}

# Tolerations
tolerations: []

# Affinity
affinity: {}
