# Kustomization — overlay de production com patches
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: production

resources:
- ../../base
- namespace.yaml

patches:
- path: deployment-patch.yaml
  target:
    kind: Deployment
    name: api-server

images:
- name: api-server
  newTag: "1.2.3"

configMapGenerator:
- name: app-config
  envs:
  - .env.production