diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index 6e551d929abe..f021de909d73 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "0.10.1" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 3.0.3 +version: 3.1.0 home: https://github.com/prometheus-community/postgres_exporter sources: - https://github.com/prometheus-community/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/deployment.yaml b/charts/prometheus-postgres-exporter/templates/deployment.yaml index 2ba95c8756e3..e3b4be0bc815 100644 --- a/charts/prometheus-postgres-exporter/templates/deployment.yaml +++ b/charts/prometheus-postgres-exporter/templates/deployment.yaml @@ -134,6 +134,10 @@ spec: {{- end }} securityContext: {{ toYaml .Values.securityContext | indent 8 }} +{{- if .Values.hostAliases }} + hostAliases: +{{ toYaml .Values.hostAliases | indent 8 }} +{{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/prometheus-postgres-exporter/values.yaml b/charts/prometheus-postgres-exporter/values.yaml index a2ab8ff306d2..27e14c028d8d 100644 --- a/charts/prometheus-postgres-exporter/values.yaml +++ b/charts/prometheus-postgres-exporter/values.yaml @@ -98,6 +98,13 @@ securityContext: {} # The securityContext this Pod should use. See https://kubernetes.io/docs/concepts/policy/security-context/ for more. # runAsUser: 65534 +hostAliases: [] + # Set Host Aliases as per https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/ + # - ip: "127.0.0.1" + # hostnames: + # - "foo.local" + # - "bar.local" + config: datasource: # Specify one of both datasource or datasourceSecret