Skip to content

Commit

Permalink
[prometheus-postgres-exporter] Add possibility to have hostAliases de…
Browse files Browse the repository at this point in the history
…fined in deployment spec (#2351)

Signed-off-by: Arthur Legrand <artlegrand@live.ca>
  • Loading branch information
Matroxt committed Aug 6, 2022
1 parent 852ddd1 commit 52263ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-postgres-exporter/templates/deployment.yaml
Expand Up @@ -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 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 52263ad

Please sign in to comment.