---
apiVersion: v1
kind: Service
metadata:
  name: grafana
spec:
  ports:
    - port: 3000
      protocol: TCP
      targetPort: http-grafana
  selector:
    app: grafana
  sessionAffinity: None
  # ClusterIP: this Service is what Prometheus' provisioned datasource and the
  # edge route resolve. Browser access is a separate decision, published by
  # `monitor --grafana-host` (edge route) or `--node-port` (LAN), so a cluster
  # with no LoadBalancer controller does not sit on a Service that never gets an
  # address.
  type: ClusterIP
