github.com/annchain/OG@v0.0.9/scripts/monitor/prometheus.yaml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 name: prometheus 5 spec: 6 selector: 7 matchLabels: 8 app: prometheus 9 replicas: 1 10 template: 11 metadata: 12 labels: 13 app: prometheus 14 spec: 15 containers: 16 - name: prometheus 17 image: prom/prometheus:latest 18 securityContext: 19 runAsUser: 0 20 ports: 21 - name: rpc 22 containerPort: 9090 23 volumeMounts: 24 - name: volume-prometheus 25 mountPath: /var/lib/grafana 26 volumeClaimTemplates: 27 - metadata: 28 name: volume-grafana 29 spec: 30 accessModes: ["ReadWriteOnce"] 31 resources: 32 requests: 33 storage: 5Gi 34 35 ----- 36 apiVersion: v1 37 kind: Service 38 metadata: 39 name: grafana 40 spec: 41 type: NodePort 42 ports: 43 - port: 3000 44 nodePort: 30002 45 name: http 46 selector: 47 app: grafana