Skip to content

Commit

Permalink
Ability for custom dnsConfig in alertmanager (prometheus-community#642)
Browse files Browse the repository at this point in the history
Signed-off-by: Stavros Foteinopoulos <[email protected]>

Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
stafot and monotek authored Feb 9, 2021
1 parent 94b2dc8 commit f13f3cc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/alertmanager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/a
sources:
- https://github.com/prometheus/alertmanager
type: application
version: 0.5.1
version: 0.6.0
appVersion: v0.21.0
maintainers:
- name: monotek
Expand Down
4 changes: 4 additions & 0 deletions charts/alertmanager/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "alertmanager.serviceAccountName" . }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
Expand Down
11 changes: 10 additions & 1 deletion charts/alertmanager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ serviceAccount:

podSecurityContext:
fsGroup: 65534

dnsConfig: {}
# nameservers:
# - 1.2.3.4
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0
securityContext:
# capabilities:
# drop:
Expand Down

0 comments on commit f13f3cc

Please sign in to comment.