Merge pull request #118 from metalmatze/common-example.jsonnet
Add commented imports for most common patches to example.jsonnet
This commit is contained in:
@@ -160,7 +160,14 @@ Here's [example.jsonnet](example.jsonnet):
|
|||||||
[embedmd]:# (example.jsonnet)
|
[embedmd]:# (example.jsonnet)
|
||||||
```jsonnet
|
```jsonnet
|
||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') + {
|
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
|
// Uncomment the following imports to enable its patches
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
|
||||||
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
},
|
},
|
||||||
|
@@ -11,7 +11,14 @@ As a basis, all examples in this guide are based on the base example of the kube
|
|||||||
[embedmd]:# (../example.jsonnet)
|
[embedmd]:# (../example.jsonnet)
|
||||||
```jsonnet
|
```jsonnet
|
||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') + {
|
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
|
// Uncomment the following imports to enable its patches
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
|
||||||
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
},
|
},
|
||||||
|
@@ -1,5 +1,12 @@
|
|||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') + {
|
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
|
// Uncomment the following imports to enable its patches
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
|
||||||
|
// (import 'kube-prometheus/kube-prometheus-thanos.libsonnet') +
|
||||||
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user