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

resources:
  - ../../base
  - autoscaling.yaml

patchesStrategicMerge:
  - replicas.yaml
  - resource-limits.yaml

configMapGenerator:
  - name: container-mom-config
    behavior: merge
    literals:
      - METRICS_ENABLED=true
      - LOG_LEVEL=info
      - ENVIRONMENT=production

images:
  - name: container-mom-web
    newName: ghcr.io/container-mom/web-portal
    newTag: latest
  - name: container-mom-controller
    newName: ghcr.io/container-mom/api-controller
    newTag: latest
  - name: container-mom-metrics
    newName: ghcr.io/container-mom/metrics-service
    newTag: latest
  - name: container-mom-dns
    newName: ghcr.io/container-mom/dns-manager
    newTag: latest
  - name: container-mom-billing
    newName: ghcr.io/container-mom/billing-service
    newTag: latest

replicas:
  - name: web-portal
    count: 3
  - name: api-controller
    count: 3
  - name: metrics-service
    count: 2
  - name: dns-manager
    count: 2
  - name: billing-service
    count: 2
