service: checkout
replicas: 4
image: registry.example.com/checkout:1.42.7
env:
  - name: DATABASE_URL
    valueFrom: secrets/db-url
  - name: REDIS_URL
    valueFrom: secrets/redis-url
  - name: PAYMENT_PROVIDER
    value: stripe
  - name: FEATURE_FLAGS
    value: checkout-v3,address-autofill,coupon-stacking
resources:
  requests:
    cpu: 250m
    memory: 512Mi
  limits:
    cpu: 1000m
    memory: 2Gi
healthcheck:
  path: /healthz
  port: 8080
  intervalSeconds: 30
  timeoutSeconds: 5
  failureThreshold: 3
rollout:
  strategy: RollingUpdate
  maxSurge: 2
  maxUnavailable: 1
  minReadySeconds: 15
labels:
  app: checkout
  tier: backend
  owner: payments-team
