mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
Merge pull request #87 from Nashluffy/patch-1
Added clusterRole, clusterRoleBinding, and SA to metallb module
This commit is contained in:
commit
d00fff6e7a
@ -24,5 +24,24 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||||||
service.mixin.metadata.withNamespace('metallb-system') +
|
service.mixin.metadata.withNamespace('metallb-system') +
|
||||||
service.mixin.metadata.withLabels({ 'k8s-app': 'metallb-controller' }) +
|
service.mixin.metadata.withLabels({ 'k8s-app': 'metallb-controller' }) +
|
||||||
service.mixin.spec.withClusterIp('None'),
|
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