apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/instance: RELEASE-NAME
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: tempo-distributed
    app.kubernetes.io/version: 1.3.0
    helm.sh/chart: tempo-distributed-0.15.1
  name: RELEASE-NAME-tempo-distributed-query-frontend
  namespace: default
spec:
  minReadySeconds: 10
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.kubernetes.io/component: query-frontend
      app.kubernetes.io/instance: RELEASE-NAME
      app.kubernetes.io/name: tempo-distributed
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
  template:
    metadata:
      annotations:
        checksum/config: c1ce0c311fa6ba4acd7956860b77ddcc7eceb0eac944e717f918579117b570a5
      labels:
        app.kubernetes.io/component: query-frontend
        app.kubernetes.io/instance: RELEASE-NAME
        app.kubernetes.io/managed-by: Helm
        app.kubernetes.io/name: tempo-distributed
        app.kubernetes.io/version: 1.3.0
        helm.sh/chart: tempo-distributed-0.15.1
        tempo-gossip-member: "true"
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchLabels:
                  app.kubernetes.io/component: query-frontend
                  app.kubernetes.io/instance: RELEASE-NAME
                  app.kubernetes.io/name: tempo-distributed
              topologyKey: failure-domain.beta.kubernetes.io/zone
            weight: 100
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app.kubernetes.io/component: query-frontend
                app.kubernetes.io/instance: RELEASE-NAME
                app.kubernetes.io/name: tempo-distributed
            topologyKey: kubernetes.io/hostname
      containers:
      - args:
        - -target=query-frontend
        - -config.file=/conf/tempo.yaml
        - -mem-ballast-size-mbs=1024
        image: docker.io/grafana/tempo:1.3.0
        imagePullPolicy: IfNotPresent
        name: query-frontend
        ports:
        - containerPort: 3100
          name: http
        - containerPort: 9095
          name: grpc
        resources: {}
        volumeMounts:
        - mountPath: /conf
          name: tempo-conf
      - args:
        - --query.base-path=/
        - --grpc-storage-plugin.configuration-file=/conf/tempo-query.yaml
        - --query.bearer-token-propagation=true
        image: docker.io/grafana/tempo-query:1.3.0
        imagePullPolicy: IfNotPresent
        name: tempo-query
        ports:
        - containerPort: 16686
          name: jaeger-ui
        - containerPort: 16687
          name: jaeger-metrics
        resources: {}
        volumeMounts:
        - mountPath: /conf
          name: tempo-conf
      serviceAccountName: RELEASE-NAME-tempo-distributed
      volumes:
      - configMap:
          name: RELEASE-NAME-tempo-distributed
        name: tempo-conf
