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

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: pyroscope
     5    namespace: pyroscope-ebpf
     6  spec:
     7    replicas: 1
     8    selector:
     9      matchLabels:
    10        app: pyroscope
    11    template:
    12      metadata:
    13        labels:
    14          app: pyroscope
    15      spec:
    16        containers:
    17          - name: pyroscope
    18            image: grafana/pyroscope:latest
    19            ports:
    20              - containerPort: 4040
    21  ---
    22  
    23  apiVersion: v1
    24  kind: Service
    25  metadata:
    26    name: pyroscope
    27    namespace: pyroscope-ebpf
    28  spec:
    29    selector:
    30      app: pyroscope
    31    ports:
    32      - protocol: TCP
    33        port: 4040
    34        targetPort: 4040