contrib/kube-prometheus: Add kops CoreDNS prometheus discovery service

This commit is contained in:
Brian Christie
2018-12-18 17:13:43 +00:00
committed by Brian Christie
parent af8ac93d52
commit 1a9f1ddeb3
3 changed files with 27 additions and 0 deletions

View File

@@ -359,6 +359,17 @@ kops:
(import 'kube-prometheus/kube-prometheus-kops.libsonnet')
```
kops with CoreDNS:
If your kops cluster is using CoreDNS, there is an additional mixin to import.
[embedmd]:# (examples/jsonnet-snippets/kops-coredns.jsonnet)
```jsonnet
(import 'kube-prometheus/kube-prometheus.libsonnet') +
(import 'kube-prometheus/kube-prometheus-kops.libsonnet') +
(import 'kube-prometheus/kube-prometheus-kops-coredns.libsonnet')
```
kubespray:
[embedmd]:# (examples/jsonnet-snippets/kubespray.jsonnet)