mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
Fix for the unused namespaces in case of disabling additional addons
This commit is contained in:
parent
031fd7e157
commit
4ee0c86a03
@ -13,7 +13,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
||||
prometheus+:: {
|
||||
names: 'k8s',
|
||||
replicas: 1,
|
||||
namespaces: ['default', 'kube-system', 'monitoring', 'logging', 'metallb-system'],
|
||||
namespaces: ['default', 'kube-system', 'monitoring'],
|
||||
},
|
||||
|
||||
alertmanager+:: {
|
||||
|
@ -13,6 +13,10 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
||||
elasticExporter: 'justwatch/elasticsearch_exporter',
|
||||
},
|
||||
|
||||
prometheus+:: {
|
||||
namespaces+:: ['logging'],
|
||||
},
|
||||
|
||||
// Add custom dashboards
|
||||
grafanaDashboards+:: {
|
||||
'elasticsearch-dashboard.json': (import 'grafana-dashboards/elasticsearch-dashboard.json'),
|
||||
|
@ -43,7 +43,7 @@ items:
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: logging
|
||||
namespace: metallb-system
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
@ -56,7 +56,7 @@ items:
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: metallb-system
|
||||
namespace: logging
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
|
@ -52,7 +52,7 @@ items:
|
||||
kind: Role
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: logging
|
||||
namespace: metallb-system
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
@ -68,7 +68,7 @@ items:
|
||||
kind: Role
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: metallb-system
|
||||
namespace: logging
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
@ -3,6 +3,11 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
||||
{
|
||||
_config+:: {
|
||||
namespace: 'monitoring',
|
||||
|
||||
prometheus+:: {
|
||||
namespaces+:: ['metallb-system'],
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
metallb+:: {
|
||||
|
Loading…
Reference in New Issue
Block a user