github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/kube-prometheus/grafana-service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    labels:
     5      app: grafana
     6    name: grafana
     7    namespace: monitoring
     8  spec:
     9    ports:
    10    - name: http
    11      port: 3000
    12      targetPort: http
    13    selector:
    14      app: grafana
    15  
    16  # NB(bodu): This is used for easier port-forwarding to the underlying host.
    17  ---
    18  apiVersion: v1
    19  kind: Service
    20  metadata:
    21    labels:
    22      app: grafana
    23    name: grafana-node-local
    24    namespace: monitoring
    25  spec:
    26    ports:
    27    - name: http
    28      port: 3000
    29      protocol: TCP
    30      targetPort: http
    31      nodePort: 30001
    32    selector:
    33      app: grafana
    34    type: NodePort
    35