kube-prometheus: Adapt CoreDNS default configuration to default CoreDNS installs

This commit is contained in:
Frederic Branczyk committed 2018-11-21 16:22:27 +01:00
1 parent 7b5f15ff84
commit d7fc1eb32b
2 files changed
+4 -4

No files matched your search

@@ -386,11 +386,9 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
},
},
spec: {
jobLabel: 'k8s-app',
selector: {
matchLabels: {
'k8s-app': 'coredns',
component: 'metrics',
'k8s-app': 'kube-dns',
},
},
namespaceSelector: {
@@ -400,7 +398,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
},
endpoints: [
{
port: 'http-metrics',
port: 'metrics',
interval: '15s',
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
},