Skip to content

KubeCPUOvercommit doesn't take node pools #481

@Duologic

Description

@Duologic

{
alert: 'KubeCPUOvercommit',
expr: |||
sum(namespace:kube_pod_container_resource_requests_cpu_cores:sum{%(ignoringOverprovisionedWorkloadSelector)s})
/
sum(kube_node_status_allocatable_cpu_cores)
>
(count(kube_node_status_allocatable_cpu_cores)-1) / count(kube_node_status_allocatable_cpu_cores)
||| % $._config,
labels: {
severity: 'warning',
},
annotations: {
message: 'Cluster has overcommitted CPU resource requests for Pods and cannot tolerate node failure.',
},
'for': '5m',
},

The KubeCPUOvercommit doesn't take node pools and tolerations into account and it might even be a stretch to cover that. Anyone has thoughts about that?

Metadata

Metadata

Assignees

Labels

keepaliveUse to prevent automatic closing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions