github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/java/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:latest 18 ports: 19 - containerPort: 4040 20 --- 21 22 apiVersion: v1 23 kind: Service 24 metadata: 25 name: pyroscope 26 spec: 27 selector: 28 app: pyroscope 29 ports: 30 - protocol: TCP 31 port: 4040 32 targetPort: 4040