apiVersion: v1
kind: Pod
metadata:
  name: ubuntu
  namespace: config-injection-test-ns
  annotations:
    otel.splunk.com/inject-config: "true"
    otel.splunk.com/injection-status: "success"
spec:
  containers:
  - name: ubuntu
    command:
      - /bin/sleep
      - infinity
    env:
      - name: SPLUNK_OTEL_AGENT
        valueFrom:
          fieldRef:
            apiVersion: v1
            fieldPath: status.hostIP
      - name: OTEL_SERVICE_NAME
        value: ubuntu
      - name: OTEL_EXPORTER_OTLP_ENDPOINT
        value: http://$(SPLUNK_OTEL_AGENT):4317
      - name: OTEL_TRACES_EXPORTER
        value: otlp
      - name: OTEL_RESOURCE_ATTRIBUTES
        value: k8s.container.name=ubuntu,k8s.namespace.name=config-injection-test-ns,k8s.pod.name=ubuntu