[stable/coredns fix prometheus metrics (#1748)

This commit is contained in:
Oleh Ozimok
2017-09-02 10:16:03 -05:00
committed by Michael Goodness
parent 5851c51534
commit 2da12db222
4 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+5
View File
@@ -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
+5
View File
@@ -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 }}