mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/coredns fix prometheus metrics (#1748)
This commit is contained in:
committed by
Michael Goodness
parent
5851c51534
commit
2da12db222
@@ -1,5 +1,5 @@
|
||||
name: coredns
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
description: CoreDNS is a DNS server that chains middleware and provides Kubernetes DNS Services
|
||||
keywords:
|
||||
- coredns
|
||||
|
||||
@@ -31,7 +31,7 @@ data:
|
||||
health
|
||||
{{- end }}
|
||||
{{- if eq "prometheus" $key }}
|
||||
prometheus localhost:{{ $middleware.port }}
|
||||
prometheus 0.0.0.0:{{ $middleware.port }}
|
||||
{{- end }}
|
||||
{{- if eq "proxy" $key }}
|
||||
proxy . /etc/resolv.conf
|
||||
|
||||
@@ -61,6 +61,11 @@ spec:
|
||||
name: dns-tcp
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if .Values.middleware.prometheus.enabled }}
|
||||
- containerPort: {{ .Values.middleware.prometheus.port }}
|
||||
name: metrics
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
|
||||
@@ -39,4 +39,9 @@ spec:
|
||||
port: 53
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if .Values.middleware.prometheus.enabled }}
|
||||
- name: metrics
|
||||
port: {{ .Values.middleware.prometheus.port }}
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
type: {{ default "ClusterIP" .Values.serviceType }}
|
||||
|
||||
Reference in New Issue
Block a user