github.com/annchain/OG@v0.0.9/deployment/k8s_grafana.yaml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 name: grafana 5 spec: 6 selector: 7 matchLabels: 8 app: grafana 9 replicas: 1 10 template: 11 metadata: 12 labels: 13 app: grafana 14 spec: 15 containers: 16 - name: grafana 17 image: grafana/grafana:latest 18 securityContext: 19 runAsUser: 0 20 ports: 21 - name: rpc 22 containerPort: 3000 23 volumeMounts: 24 - name: volume-grafana 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