mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #49257 from k82cn/k8s_42001
Automatic merge from submit-queue (batch tested with PRs 51574, 51534, 49257, 44680, 48836) Task 1: Tainted node by condition. **What this PR does / why we need it**: Tainted node by condition for MemoryPressure, OutOfDisk and so on. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: part of #42001 **Release note**: ```release-note Tainted nodes by conditions as following: * 'node.kubernetes.io/network-unavailable=:NoSchedule' if NetworkUnavailable is true * 'node.kubernetes.io/disk-pressure=:NoSchedule' if DiskPressure is true * 'node.kubernetes.io/memory-pressure=:NoSchedule' if MemoryPressure is true * 'node.kubernetes.io/out-of-disk=:NoSchedule' if OutOfDisk is true ```
This commit is contained in:
		@@ -112,6 +112,7 @@ func startNodeController(ctx ControllerContext) (bool, error) {
 | 
			
		||||
		ipam.CIDRAllocatorType(ctx.Options.CIDRAllocatorType),
 | 
			
		||||
		ctx.Options.EnableTaintManager,
 | 
			
		||||
		utilfeature.DefaultFeatureGate.Enabled(features.TaintBasedEvictions),
 | 
			
		||||
		utilfeature.DefaultFeatureGate.Enabled(features.TaintNodesByCondition),
 | 
			
		||||
	)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return true, err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user