github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/ebpf-otel/kubernetes/pyroscope.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: pyroscope
     5  spec:
     6    replicas: 1
     7    selector:
     8      matchLabels:
     9        app: pyroscope
    10    template:
    11      metadata:
    12        labels:
    13          app: pyroscope
    14      spec:
    15        containers:
    16          - name: pyroscope
    17            image: grafana/pyroscope:weekly-f125-16eebf27b
    18            # fixed versions for pyroscope, otel-collector, otel-profiler due to protocol changes
    19            args:
    20              - "-self-profiling.disable-push=true"
    21            ports:
    22              - containerPort: 4040
    23  ---
    24  apiVersion: v1
    25  kind: Service
    26  metadata:
    27    name: pyroscope-service
    28  spec:
    29    selector:
    30      app: pyroscope
    31    ports:
    32      - protocol: TCP
    33        port: 4040
    34        targetPort: 4040