Files
kube-prometheus/manifests/prometheus/prometheus-k8s-service-coredns-metrics.yaml
Richard Maynard 889eca2cd4 charts: Add Core DNS Support (#1176)
* charts: Add Core DNS Support

With CoreDNS becoming a first class citizen it should be an optional part
of the kube-prometheus deployment.

Fixes: #1174

* added kube-prometheus service and service monitor

In order to work directly with a cluster created by bootkube used port 9153,
and created a service exposing metrics since bootkube does does not. Also in
the helm chart changed the default port to 9153 since that is the coredns
plugins default port and to be consistent throughout the repo.
2018-04-05 09:57:56 +02:00

19 lines
324 B
YAML

apiVersion: v1
kind: Service
metadata:
name: coredns-prometheus-discovery
namespace: kube-system
labels:
k8s-app: coredns
component: metrics
spec:
ports:
- name: http-metrics
port: 9153
protocol: TCP
targetPort: 9153
selector:
k8s-app: coredns
type: ClusterIP
clusterIP: None