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,47 +48,49 @@ local kp =
|
|||||||
'kube-prometheus': ingress(
|
'kube-prometheus': ingress(
|
||||||
'kube-prometheus',
|
'kube-prometheus',
|
||||||
$._config.namespace,
|
$._config.namespace,
|
||||||
[{
|
[
|
||||||
host: 'alertmanager.example.com',
|
{
|
||||||
http: {
|
host: 'alertmanager.example.com',
|
||||||
paths: [{
|
http: {
|
||||||
backend: {
|
paths: [{
|
||||||
service: {
|
backend: {
|
||||||
name: 'alertmanager-main',
|
service: {
|
||||||
port: 'web',
|
name: 'alertmanager-main',
|
||||||
|
port: 'web',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
}],
|
||||||
}],
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
host: 'grafana.example.com',
|
||||||
host: 'grafana.example.com',
|
http: {
|
||||||
http: {
|
paths: [{
|
||||||
paths: [{
|
backend: {
|
||||||
backend: {
|
service: {
|
||||||
service: {
|
name: 'grafana',
|
||||||
name: 'grafana',
|
port: 'http',
|
||||||
port: 'http',
|
},
|
||||||
},
|
},
|
||||||
},
|
}],
|
||||||
}],
|
},
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
host: 'alertmanager.example.com',
|
||||||
host: 'alertmanager.example.com',
|
http: {
|
||||||
http: {
|
paths: [{
|
||||||
paths: [{
|
backend: {
|
||||||
backend: {
|
service: {
|
||||||
service: {
|
name: 'prometheus-k8s',
|
||||||
name: 'prometheus-k8s',
|
port: 'web',
|
||||||
port: 'web',
|
},
|
||||||
},
|
},
|
||||||
},
|
}],
|
||||||
}],
|
},
|
||||||
},
|
},
|
||||||
},]
|
]
|
||||||
),
|
),
|
||||||
|
|
||||||
},
|
},
|
||||||
} + {
|
} + {
|
||||||
// Create basic auth secret - replace 'auth' file with your own
|
// Create basic auth secret - replace 'auth' file with your own
|
||||||
|
|||||||
Reference in New Issue
Block a user