apiVersion: v1 kind: ConfigMap metadata: name: otel-lab-tempo-config namespace: monitoring data: tempo.yaml: | server: http_listen_port: 3200 distributor: receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 ingester: trace_idle_period: 10s max_block_duration: 5m compactor: compaction: block_retention: 24h storage: trace: backend: local wal: path: /var/tempo/wal local: path: /var/tempo/blocks usage_report: reporting_enabled: false --- apiVersion: apps/v1 kind: Deployment metadata: name: otel-lab-tempo namespace: monitoring spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: otel-lab-tempo template: metadata: labels: app: otel-lab-tempo spec: automountServiceAccountToken: false securityContext: runAsNonRoot: true runAsUser: 10001 runAsGroup: 10001 fsGroup: 10001 seccompProfile: type: RuntimeDefault containers: - name: tempo image: grafana/tempo:2.7.2 args: ["-config.file=/etc/tempo/tempo.yaml"] ports: - name: http containerPort: 3200 - name: otlp-grpc containerPort: 4317 readinessProbe: httpGet: path: /ready port: http initialDelaySeconds: 5 securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: ["ALL"] resources: requests: cpu: 50m memory: 128Mi ephemeral-storage: 128Mi limits: cpu: 500m memory: 512Mi ephemeral-storage: 1Gi volumeMounts: - name: config mountPath: /etc/tempo readOnly: true - name: data mountPath: /var/tempo - name: tmp mountPath: /tmp volumes: - name: config configMap: name: otel-lab-tempo-config - name: data emptyDir: sizeLimit: 512Mi - name: tmp emptyDir: sizeLimit: 64Mi --- apiVersion: v1 kind: Service metadata: name: otel-lab-tempo namespace: monitoring spec: selector: app: otel-lab-tempo ports: - name: http port: 3200 targetPort: http - name: otlp-grpc port: 4317 targetPort: otlp-grpc