Handle service's clusterIP for all services.
stackube-proxy has already handled clusterIP for ClusterIP typed service, this PR adds handling for other typed services. This could make clusterIP working for all services. Change-Id: Ic728be02301bf8befe98b5b92861f865c6bf8f15 Closes-Bug: 1710840 Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
This commit is contained in:
		| @@ -552,11 +552,11 @@ func (p *Proxier) syncProxyRules() { | |||||||
| 			svcNameString := svcInfo.serviceNameString | 			svcNameString := svcInfo.serviceNameString | ||||||
|  |  | ||||||
| 			// Step 5.1: check service type. | 			// Step 5.1: check service type. | ||||||
| 			// Only ClusterIP service is supported. NodePort service is not supported since networks are L2 isolated. | 			// Only ClusterIP service is supported. We also handles clusterIP for other typed services, but note that: | ||||||
| 			// LoadBalancer service is handled in service controller. | 			// - NodePort service is not supported since networks are L2 isolated. | ||||||
|  | 			// - LoadBalancer service is handled in service controller. | ||||||
| 			if svcInfo.serviceType != v1.ServiceTypeClusterIP { | 			if svcInfo.serviceType != v1.ServiceTypeClusterIP { | ||||||
| 				glog.V(3).Infof("Only ClusterIP service is supported, omitting service %q", svcName.NamespacedName) | 				glog.V(3).Infof("Only service's clusterIP is handled here, omitting other fields of service %q (type=%q)", svcName.NamespacedName, svcInfo.serviceType) | ||||||
| 				continue |  | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			// Step 5.2: check endpoints. | 			// Step 5.2: check endpoints. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Pengfei Ni
					Pengfei Ni