[stable/grafana] Adding hostAliases (#23309)

* Adding a hostAliases section to the values.yaml, templating it into the deployment, and describing it in the README.md

Signed-off-by: Michael Lundquist <michaellundquist7@gmail.com>

* Bumping chart version

Signed-off-by: Michael Lundquist <michaellundquist7@gmail.com>
This commit is contained in:
Michael Lundquist
2020-07-26 04:34:16 -07:00
committed by GitHub
parent 09afc28910
commit 018db3282e
4 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 5.5.0
version: 5.5.1
appVersion: 7.0.5
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1
View File
@@ -68,6 +68,7 @@ You have to add --force to your helm upgrade command as the labels of the chart
| `service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to lb (if supported) | `[]` |
| `service.externalIPs` | service external IP addresses | `[]` |
| `extraExposePorts` | Additional service ports for sidecar containers| `[]` |
| `hostAliases` | adds rules to the pod's /etc/hosts | `[]` |
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations (values are templated) | `{}` |
| `ingress.labels` | Custom labels | `{}` |
+5
View File
@@ -1,3 +1,4 @@
{{- define "grafana.pod" -}}
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
@@ -7,6 +8,10 @@ serviceAccountName: {{ template "grafana.serviceAccountName" . }}
securityContext:
{{ toYaml .Values.securityContext | indent 2 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{ toYaml .Values.hostAliases | indent 2 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
+6
View File
@@ -130,6 +130,12 @@ extraExposePorts: []
# targetPort: 8080
# type: ClusterIP
# overrides pod.spec.hostAliases in the grafana deployment's pods
hostAliases: []
# - ip: "1.2.3.4"
# hostnames:
# - "my.host.com"
ingress:
enabled: false
# Values can be templated