apiVersion: apps/v1
kind: Deployment
metadata:
  name: tempo-proxy
spec:
  replicas: 3
  template:
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app: tempo-proxy
            topologyKey: kubernetes.io/hostname
      topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: topology.kubernetes.io/zone
        whenUnsatisfiable: ScheduleAnyway
        labelSelector:
          matchLabels:
            app: tempo-proxy
      containers:
      - name: tempo-proxy
        env:
        - name: CORE_PROXY_API_KEY
          valueFrom:
            secretKeyRef:
              name: core-proxy-api-key
              key: core-proxy
