Skip to content

Commit 0d5e607

Browse files
authored
[prometheus-mongodb-exporter] Add hostAliases (#6258)
1 parent e2604b5 commit 0d5e607

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

charts/prometheus-mongodb-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ maintainers:
1818
name: prometheus-mongodb-exporter
1919
sources:
2020
- https://github.com/percona/mongodb_exporter
21-
version: 3.14.0
21+
version: 3.15.0
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Test setting DNS overrides
2+
3+
dnsConfig:
4+
nameservers:
5+
- 192.0.2.1
6+
searches:
7+
- ns1.svc.cluster-domain.example
8+
- my.dns.search.suffix
9+
options:
10+
- name: ndots
11+
value: "2"
12+
- name: edns0
13+
14+
hostAliases:
15+
- ip: "127.0.0.1"
16+
hostnames:
17+
- "foo.local"
18+
- "bar.local"
19+
- ip: "10.1.2.3"
20+
hostnames:
21+
- "foo.remote"
22+
- "bar.remote"

charts/prometheus-mongodb-exporter/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ spec:
8282
dnsConfig:
8383
{{- toYaml . | nindent 8 }}
8484
{{- end }}
85+
{{- with .Values.hostAliases }}
86+
hostAliases:
87+
{{- toYaml . | nindent 8 }}
88+
{{- end }}
8589
imagePullSecrets:
8690
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
8791
{{- with .Values.podSecurityContext }}

charts/prometheus-mongodb-exporter/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ annotations: {}
66
customLabels: {}
77

88
dnsConfig: {}
9+
hostAliases: []
910

1011
# Extra environment variables that will be passed into the exporter pod
1112
env: {}

0 commit comments

Comments
 (0)