apiVersion: apps/v1
kind: Deployment
metadata:
  name: billing2-worker
spec:
  replicas: 1
  template:
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app: billing2-worker
            topologyKey: kubernetes.io/hostname
      topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: topology.kubernetes.io/zone
        whenUnsatisfiable: ScheduleAnyway
        labelSelector:
          matchLabels:
            app: billing2-worker
      containers:
      - name: billing2-worker
        image: 380838443567.dkr.ecr.us-west-2.amazonaws.com/dbaas/prod/dbaas-billing2:20260907-2
        command: ["/usr/local/bin/worker"]
        resources:
          requests:
            cpu: "4000m"
            memory: "5000Mi"
          limits:
            cpu: "4000m"
            memory: "5000Mi"
