allow the grafana service annotations to be customised (#1488)

* allow the service annotations to be customised

In a similar way to the prometheus chart, allow the service annotations to be specified.  This lets us use an internal aws load balancer, for example, by specifying: service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0

* allow the service annotations to be customised

In a similar way to the prometheus chart, allow the service annotations to be specified.  This lets us use an internal aws load balancer, for example, by specifying: service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0

* Bump chart version
This commit is contained in:
nomis2k
2017-07-17 21:26:43 -05:00
committed by Michael Goodness
parent 758156b294
commit 688e60a084
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: grafana
version: 0.3.7
version: 0.4.0
description: The leading tool for querying and visualizing time series and metrics.
home: https://grafana.net
icon: https://raw.githubusercontent.com/grafana/grafana/master/public/img/logo_transparent_400x.png
+1
View File
@@ -43,3 +43,4 @@ The command removes all the Kubernetes components associated with the chart and
| `server.resources` | Server resource requests and limits | requests: {cpu: 100m, memory: 100Mi} |
| `server.serviceType` | ClusterIP, NodePort, or LoadBalancer| ClusterIP |
| `server.setDatasource.enabled` | Creates grafana datasource with job | false |
| `server.service.annotations` | Service annotations | null |
+4
View File
@@ -1,6 +1,10 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.server.service.annotations }}
annotations:
{{ toYaml .Values.server.service.annotations | indent 4 }}
{{- end }}
labels:
app: {{ template "grafana.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+5
View File
@@ -111,6 +111,11 @@ server:
##
serviceType: ClusterIP
## Grafana service annotations
##
service:
annotations: {}
## Load balancer IP address
## Is not required, but allows for static address with
## serviceType LoadBalancer.