apiVersion: apps/v1
kind: Deployment
metadata:
  name: tempo-wrapper
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: tempo-wrapper
  template:
    metadata:
      labels:
        app.kubernetes.io/name: tempo-wrapper
    spec:
      containers:
        - name: tempo-wrapper
          image: cp9.local/tempo-wrapper:placeholder
          command:
            - /command/tempo-wrapper/tempo-wrapper
          args:
            - -config=/etc/tempo-wrapper/config.yaml
          ports:
            - name: http
              containerPort: 8080
            - name: metrics
              containerPort: 9090
          readinessProbe:
            httpGet:
              path: /healthz
              port: http
            initialDelaySeconds: 5
            periodSeconds: 5
            failureThreshold: 10
          env:
            - name: GIN_MODE
              value: release
            - name: TIINF_POD_NAME
              value: management-wrapper-http-service
          volumeMounts:
            - name: config
              mountPath: /etc/tempo-wrapper/config.yaml
              subPath: config.yaml
              readOnly: true
      volumes:
        - name: config
          configMap:
            name: tempo-wrapper-config
