mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fix HTTP readiness/liveness probes for local node
This commit is contained in:
		@@ -1216,8 +1216,14 @@ func (proxier *Proxier) syncProxyRules() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		// If nodePort is specified, user should be able to use nodeIP:nodePort to reach the backend endpoints
 | 
							// If nodePort is specified, user should be able to use nodeIP:nodePort to reach the backend endpoints
 | 
				
			||||||
		if svcInfo.nodePort > 0 {
 | 
							if svcInfo.nodePort > 0 {
 | 
				
			||||||
 | 
								// If the preserve-destination service annotation is present, we will disable routing mesh for NodePort.
 | 
				
			||||||
 | 
								// This means that health services can use Node Port without falsely getting results from a different node.
 | 
				
			||||||
 | 
								nodePortEndpoints := hnsEndpoints
 | 
				
			||||||
 | 
								if svcInfo.preserveDIP {
 | 
				
			||||||
 | 
									nodePortEndpoints = hnsLocalEndpoints
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			hnsLoadBalancer, err := hns.getLoadBalancer(
 | 
								hnsLoadBalancer, err := hns.getLoadBalancer(
 | 
				
			||||||
				hnsEndpoints,
 | 
									nodePortEndpoints,
 | 
				
			||||||
				loadBalancerFlags{localRoutedVIP: true},
 | 
									loadBalancerFlags{localRoutedVIP: true},
 | 
				
			||||||
				sourceVip,
 | 
									sourceVip,
 | 
				
			||||||
				"",
 | 
									"",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user