Kubernetes Couchbase UI not assigned ELB in EKS throws error

Hi,

Name:                     wayshipcluster-ui
Namespace:                default
Labels:                   app=couchbase
                          couchbase_cluster=wayshipcluster
Annotations:              external-dns.alpha.kubernetes.io/hostname: console.wayship.io
                          operator.couchbase.com/version: 2.0.1
Selector:                 app=couchbase,couchbase_cluster=wayshipcluster
Type:                     LoadBalancer
IP:                       10.100.179.159
Port:                     couchbase-ui-tls  18091/TCP
TargetPort:               18091/TCP
NodePort:                 couchbase-ui-tls  30625/TCP
Endpoints:                192.168.10.39:18091,192.168.31.192:18091,192.168.35.73:18091
Session Affinity:         ClientIP
External Traffic Policy:  Local
HealthCheck NodePort:     32197
Events:
  Type     Reason                  Age                 From                Message
  ----     ------                  ----                ----                -------
  Normal   EnsuringLoadBalancer    60s (x10 over 21m)  service-controller  Ensuring load balancer
  Warning  SyncLoadBalancerFailed  60s (x10 over 21m)  service-controller  Error syncing load balancer: failed to ensure load balancer: unsupported load balancer affinity: ClientIP

The cluser-ui is not assigned external ip. It throws error Error syncing load balancer: failed to ensure load balancer: unsupported load balancer affinity: ClientIP
Any idea.

Yes I do, AWS is broken and doesn’t allow IP basec client affinity :smiley:

Try setting spec.platform: aws. This will cause the operator not to use client affinity, and will work. Problem is the connection may drop and then be routed to another pod, which will reject the request as Couchbase doesn’t support load balancing on the UI. If this is for HA service discovery, this is fine. only the UI is affected. If you wish to use the UI externally we recommend using a port forward.