import main.libsonnet to allow exmaple generation
This commit is contained in:
@@ -14,7 +14,7 @@ local ingress(name, namespace, rules) = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
(import 'kube-prometheus/main.libsonnet') +
|
||||||
{
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
@@ -48,7 +48,8 @@ local kp =
|
|||||||
'kube-prometheus': ingress(
|
'kube-prometheus': ingress(
|
||||||
'kube-prometheus',
|
'kube-prometheus',
|
||||||
$._config.namespace,
|
$._config.namespace,
|
||||||
[{
|
[
|
||||||
|
{
|
||||||
host: 'alertmanager.example.com',
|
host: 'alertmanager.example.com',
|
||||||
http: {
|
http: {
|
||||||
paths: [{
|
paths: [{
|
||||||
@@ -86,7 +87,8 @@ local kp =
|
|||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
},]
|
},
|
||||||
|
]
|
||||||
),
|
),
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user