apiVersion: v1
kind: Service
metadata:
  name: prop
  namespace: prop
spec:
  type: ClusterIP
  sessionAffinity: ClientIP
  sessionAffinityConfig:
    clientIP:
      timeoutSeconds: 3600
  selector:
    app: prop
    # Exclude prop-backfill (tier: backfill) — it runs PHX_SERVER=false
    # and doesn't listen on :5000. A pre-tier-label deploy caused a
    # Cloudflare 502 when ClientIP affinity pinned a source to the
    # backfill endpoint.
    tier: hot
  ports:
    - name: http
      port: 5000
      targetPort: 5000
      protocol: TCP
