mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-18 19:05:44 +01:00
Added clusterRole, clusterRoleBinding, and SA to metallb module
This commit is contained in:
parent
e7c456f380
commit
264569f215
@ -24,5 +24,24 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
||||
service.mixin.metadata.withNamespace('metallb-system') +
|
||||
service.mixin.metadata.withLabels({ 'k8s-app': 'metallb-controller' }) +
|
||||
service.mixin.spec.withClusterIp('None'),
|
||||
|
||||
clusterRole:
|
||||
utils.newClusterRole('metallb-exporter', [
|
||||
{
|
||||
apis: [''],
|
||||
res: ['services', 'endpoints', 'pods'],
|
||||
verbs: ['get', 'list', 'watch'],
|
||||
},
|
||||
], null),
|
||||
|
||||
|
||||
serviceAccount:
|
||||
utils.newServiceAccount('metallb-exporter', $._config.namespace, null),
|
||||
|
||||
|
||||
clusterRoleBinding:
|
||||
utils.newClusterRoleBinding('metallb-exporter', 'metallb-exporter', $._config.namespace, 'metallb-exporter', null),
|
||||
|
||||
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user