Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1392

ExternalPort comparison fails when using DNS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.0
    • 2.0.0
    • operator
    • None

    Description

      The operator is constantly trying to reconcile alternative addresses because external ports from kubernetes services aren't matching what we get from couchbase.

      It appears that this is because we only set ExternalPorts from NodePorts services, but since I'm using a LoadBalancer the ports aren't being set.  

        // Only NodePorts do DNAT
        if svc.Spec.Type != v1.ServiceTypeNodePort {
          return nil, nil
        }​ 

       

      Perhaps the solution here is to also set ports for LoadBalancer service types?

       

      Anyways this behavior is harmless, but does lead to excessive logging by the operator. 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tommie Tommie McAfee (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty