apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: kagent

bases:
  - ../../base

replicas:
  - name: kagent
    count: 5

patchesStrategicMerge:
  - statefulset-patch.yaml

patchesJson6902:
  - target:
      group: v1
      version: v1
      kind: ResourceQuota
      name: kagent-quota
    patch: |-
      - op: replace
        path: /spec/hard/requests.cpu
        value: "50"
      - op: replace
        path: /spec/hard/limits.cpu
        value: "100"

configMapGenerator:
  - name: kagent-config
    behavior: merge
    literals:
      - LOG_LEVEL=warn
      - A2A_DISCOVERY_INTERVAL=60s

commonLabels:
  environment: prod

commonAnnotations:
  "environment": "production"
  "backup.velero.io/backup": "true"
