Skip to content
Snippets Groups Projects
Commit 889eca2c authored by Richard Maynard's avatar Richard Maynard Committed by Giancarlo Rubio
Browse files

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.
parent b566db5d
Branches
Tags
No related merge requests found
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
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: coredns
name: coredns
spec:
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: coredns
component: metrics
namespaceSelector:
matchNames:
- kube-system
endpoints:
- port: http-metrics
interval: 15s
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment