github.com/grafana/pyroscope@v1.18.0/operations/monitoring/helm/pyroscope-monitoring/lgtm.yaml (about) 1 # this is intended for demo / testing purposes only, not for production usage 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: lgtm 6 spec: 7 selector: 8 app: lgtm 9 ports: 10 - name: grafana 11 protocol: TCP 12 port: 3000 13 targetPort: 3000 14 - name: otel-grpc 15 protocol: TCP 16 port: 4317 17 targetPort: 4317 18 - name: otel-http 19 protocol: TCP 20 port: 4318 21 targetPort: 4318 22 --- 23 apiVersion: apps/v1 24 kind: Deployment 25 metadata: 26 name: lgtm 27 spec: 28 replicas: 1 29 selector: 30 matchLabels: 31 app: lgtm 32 template: 33 metadata: 34 labels: 35 app: lgtm 36 spec: 37 containers: 38 - name: lgtm 39 image: grafana/otel-lgtm:latest 40 ports: 41 - containerPort: 3000 42 - containerPort: 4317 43 - containerPort: 4318 44 readinessProbe: 45 exec: 46 command: 47 - cat 48 - /tmp/ready 49 # NOTE: By default OpenShift does not allow writing the root directory. 50 # Thats why the data dirs for grafana, prometheus and loki can not be 51 # created and the pod never becomes ready. 52 # See: https://github.com/grafana/docker-otel-lgtm/issues/132 53 volumeMounts: 54 - name: tempo-data 55 mountPath: /data/tempo 56 - name: grafana-data 57 mountPath: /data/grafana 58 - name: loki-data 59 mountPath: /data/loki 60 - name: loki-storage 61 mountPath: /loki 62 - name: p8s-storage 63 mountPath: /data/prometheus 64 - name: pyroscope-storage 65 mountPath: /data/pyroscope 66 volumes: 67 - name: tempo-data 68 emptyDir: {} 69 - name: loki-data 70 emptyDir: {} 71 - name: grafana-data 72 emptyDir: {} 73 - name: loki-storage 74 emptyDir: {} 75 - name: p8s-storage 76 emptyDir: {} 77 - name: pyroscope-storage 78 emptyDir: {}