mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Do not set service stickyness for loadbalancer EA service, because AWS does not support it
This commit is contained in:
parent
52783c5a11
commit
efe155d136
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ func (r *Resources) ensureExternalAccessServices(eaServiceName, ns, svcRole, tit
|
|||
// Let's create or update the database external access service
|
||||
nodePort := spec.GetNodePort()
|
||||
loadBalancerIP := spec.GetLoadBalancerIP()
|
||||
if eaServiceType == v1.ServiceTypeLoadBalancer {
|
||||
sessionAffinity = v1.ServiceAffinityNone
|
||||
}
|
||||
_, newlyCreated, err := k8sutil.CreateExternalAccessService(kubecli, eaServiceName, svcRole, apiObject, eaServiceType, port, nodePort, loadBalancerIP, sessionAffinity, apiObject.AsOwner())
|
||||
if err != nil {
|
||||
log.Debug().Err(err).Msgf("Failed to create %s external access service", title)
|
||||
|
|
Loading…
Reference in a new issue