Skip to content

Commit

Permalink
fix: multi rbd-hub build error (#268)
Browse files Browse the repository at this point in the history
Signed-off-by: yangk <[email protected]>
  • Loading branch information
yangkaa authored Dec 11, 2024
1 parent fe8e6e9 commit b1dfb8e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions controllers/handler/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ func (h *hub) ingressForHub() client.Object {
},
Backends: []v2.ApisixRouteHTTPBackend{
{
ServicePort: intstr.FromInt(5000),
ServiceName: "rbd-hub",
ServicePort: intstr.FromInt(5000),
ServiceName: "rbd-hub",
ResolveGranularity: "service",
},
},
Authentication: v2.ApisixRouteAuthentication{
Expand Down Expand Up @@ -393,7 +394,13 @@ func (h *hub) serviceForHub() client.Object {
},
},
},
Selector: h.labels,
Selector: h.labels,
SessionAffinity: corev1.ServiceAffinityClientIP,
SessionAffinityConfig: &corev1.SessionAffinityConfig{
ClientIP: &corev1.ClientIPConfig{
TimeoutSeconds: commonutil.Int32(600),
},
},
},
}

Expand Down

0 comments on commit b1dfb8e

Please sign in to comment.