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+:: {
|
prometheus+:: {
|
||||||
names: 'k8s',
|
names: 'k8s',
|
||||||
replicas: 1,
|
replicas: 1,
|
||||||
namespaces: ['default', 'kube-system', 'monitoring', 'logging', 'metallb-system'],
|
namespaces: ['default', 'kube-system', 'monitoring'],
|
||||||
},
|
},
|
||||||
|
|
||||||
alertmanager+:: {
|
alertmanager+:: {
|
||||||
|
@ -13,6 +13,10 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
elasticExporter: 'justwatch/elasticsearch_exporter',
|
elasticExporter: 'justwatch/elasticsearch_exporter',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
prometheus+:: {
|
||||||
|
namespaces+:: ['logging'],
|
||||||
|
},
|
||||||
|
|
||||||
// Add custom dashboards
|
// Add custom dashboards
|
||||||
grafanaDashboards+:: {
|
grafanaDashboards+:: {
|
||||||
'elasticsearch-dashboard.json': (import 'grafana-dashboards/elasticsearch-dashboard.json'),
|
'elasticsearch-dashboard.json': (import 'grafana-dashboards/elasticsearch-dashboard.json'),
|
||||||
|
@ -43,7 +43,7 @@ items:
|
|||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus-k8s
|
name: prometheus-k8s
|
||||||
namespace: logging
|
namespace: metallb-system
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
@ -56,7 +56,7 @@ items:
|
|||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus-k8s
|
name: prometheus-k8s
|
||||||
namespace: metallb-system
|
namespace: logging
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
|
@ -52,7 +52,7 @@ items:
|
|||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus-k8s
|
name: prometheus-k8s
|
||||||
namespace: logging
|
namespace: metallb-system
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
@ -68,7 +68,7 @@ items:
|
|||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus-k8s
|
name: prometheus-k8s
|
||||||
namespace: metallb-system
|
namespace: logging
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@ -3,6 +3,11 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
{
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
|
|
||||||
|
prometheus+:: {
|
||||||
|
namespaces+:: ['metallb-system'],
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
metallb+:: {
|
metallb+:: {
|
||||||
|
Loading…
Reference in New Issue
Block a user