Kubernetes Node out of pod capacity
warning

Description Node {{ $labels.node }} is out of pod capacity
Query for 2m
>>>
	
				
					sum by (
				
			
				
					
				
			
				
					) ((
				
			
				
					
				
			
				
					{phase="Running"} == 1) + on(uid, instance) group_left(
				
			
				
					
				
			
				
					) (0 * 
				
			
				
					
				
			
				
					{pod_template_hash=""})) / sum by (
				
			
				
					
				
			
				
					) (
				
			
				
					
				
			
				
					{resource="pods"}) * 100 > 90
				
			
    
Query Explanation

The rule computes, per node, the percentage of pod slots in use by dividing the total number of running pods (matched to their node via a left join with kube_pod_info) by the node’s allocatable pod capacity (kube_node_status_allocatable{resource="pods"}) and multiplying by 100; the alert fires when this usage exceeds 90 % on any node.

Get Alert
Download
Copy to Clipboard