mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
Merge pull request #1026 from lavalamp/redirect
Add simple service redirection
This commit is contained in:
@@ -72,6 +72,7 @@ func (e *EndpointController) SyncServiceEndpoints() error {
|
||||
}
|
||||
endpoints[ix] = net.JoinHostPort(pod.CurrentState.PodIP, strconv.Itoa(port))
|
||||
}
|
||||
// TODO: this is totally broken, we need to compute this and store inside an AtomicUpdate loop.
|
||||
err = e.serviceRegistry.UpdateEndpoints(api.Endpoints{
|
||||
JSONBase: api.JSONBase{ID: service.ID},
|
||||
Endpoints: endpoints,
|
||||
|
Reference in New Issue
Block a user