github.com/jonaz/heapster@v1.3.0-beta.0.0.20170208112634-cd3c15ca3d29/deploy/kube-config/influxdb/grafana-service.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 labels: 5 # For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) 6 # If you are NOT using this as an addon, you should comment out this line. 7 kubernetes.io/cluster-service: 'true' 8 kubernetes.io/name: monitoring-grafana 9 name: monitoring-grafana 10 namespace: kube-system 11 spec: 12 # In a production setup, we recommend accessing Grafana through an external Loadbalancer 13 # or through a public IP. 14 # type: LoadBalancer 15 # You could also use NodePort to expose the service at a randomly-generated port 16 # type: NodePort 17 ports: 18 - port: 80 19 targetPort: 3000 20 selector: 21 k8s-app: grafana