You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
614 B
21 lines
614 B
3 months ago
|
// On managed Kubernetes clusters some of the control plane components are not exposed to customers.
|
||
|
// Disable scrape jobs, service monitors, and alert groups for these components by overwriting 'main.libsonnet' defaults
|
||
|
|
||
|
{
|
||
|
kubernetesControlPlane+: {
|
||
|
serviceMonitorKubeControllerManager:: null,
|
||
|
serviceMonitorKubeScheduler:: null,
|
||
|
} + {
|
||
|
prometheusRule+: {
|
||
|
spec+: {
|
||
|
local g = super.groups,
|
||
|
groups: [
|
||
|
h
|
||
|
for h in g
|
||
|
if !std.setMember(h.name, ['kubernetes-system-controller-manager', 'kubernetes-system-scheduler'])
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
}
|