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

Expose index/view NodePort service on data pods

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • operator, testing
    • None
    • 1

    Description

      The data service only pods are not exposing NodePorts for the view service on 8092.
      test.yaml

      This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
       
      kubectl get svc
      cb-example-0000                       NodePort    10.96.83.144    <none>  8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP
      cb-example-0001                       NodePort    10.96.208.44    <none>  8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP

      kubectl describe pod cb-example-0000  

      Name:         cb-example-0000

      ...

      Labels:       app=couchbase

                    couchbase_cluster=cb-example

                    couchbase_node=cb-example-0000

                    couchbase_node_conf=data

                    couchbase_server=true

                    couchbase_service_data=enabled

       

      Attachments

        1. test.yaml
          0.8 kB
        2. ViewsSDK.py
          1 kB

        Issue Links

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

          Activity

            patrick.stephens Patrick Stephens (Inactive) created issue -
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Field Original Value New Value
            Attachment test.yaml [ 149125 ]
            Description The data service only pods are not exposing NodePorts for the index/view service on 8092.

             
            _apiVersion: couchbase.com/v2_
            _kind: CouchbaseBucket_
            _metadata:_
            _name: default_
            _---_
            _apiVersion: couchbase.com/v2_
            _kind: CouchbaseCluster_
            _metadata:_
            _name: cb-example_
            _spec:_
            _image: couchbase/server:6.6.2_
            _security:_
            _adminSecret: cb-example-auth_
            _rbac:_
            _managed: true_
            _networking:_
            _exposeAdminConsole: true_
            _adminConsoleServiceTemplate:_
            _spec:_
            _type: NodePort_
            _exposedFeatures:_
            _- xdcr_
            _exposedFeatureServiceTemplate:_
            _spec:_
            _type: NodePort_
            _buckets:_
            _managed: true_
            _servers:_
            _- size: 1_
            _name: data_
            _services:_
            _- data_
            _- size: 1_
            _name: index_
            _services:_
            _- index_
             
            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
             
            _kubectl get svc_
            _cb-example-0000                       NodePort    10.96.83.144    <none>        8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP                                                                                                                                                                                                        cb-example-0001                       NodePort    10.96.208.44    <none>        8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8*092:30492/TCP,18092:32543/TCP*_ 

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>        8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP                                                                                                                                                                                                        cb-example-0001                       NodePort    10.96.208.44    <none>        8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8*092:30492/TCP,18092:32543/TCP*_ 

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Affects Version/s 2.2.0 [ 17035 ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Description The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>        8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP                                                                                                                                                                                                        cb-example-0001                       NodePort    10.96.208.44    <none>        8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8*092:30492/TCP,18092:32543/TCP*_ 

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>        8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP                                                            cb-example-0001                       NodePort    10.96.208.44    <none>        8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP_

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Description The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>        8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP                                                            cb-example-0001                       NodePort    10.96.208.44    <none>        8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP_

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>  8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP_
            _cb-example-0001                       NodePort    10.96.208.44    <none>  8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP_

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            vrinda.davda Vrinda Davda (Inactive) made changes -
            Link This issue causes CBSE-10397 [ CBSE-10397 ]
            James Flather James Flather made changes -
            Link This issue blocks CBSE-10397 [ CBSE-10397 ]
            James Flather James Flather made changes -
            Description The data service only pods are not exposing NodePorts for the index/view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>  8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP_
            _cb-example-0001                       NodePort    10.96.208.44    <none>  8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP_

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            The data service only pods are not exposing NodePorts for the view service on 8092.
             [^test.yaml]

            This creates two pods, one for data and one for index. Only the index pod exposes a NodePort service for 8092.
              
             _kubectl get svc_
             _cb-example-0000                       NodePort    10.96.83.144    <none>  8091:31447/TCP,18091:31343/TCP,11210:31937/TCP,11207:32437/TCP_
            _cb-example-0001                       NodePort    10.96.208.44    <none>  8091:32601/TCP,18091:32422/TCP,11210:32747/TCP,11207:31558/TCP,8092:30492/TCP,18092:32543/TCP_

            _kubectl describe pod cb-example-0000_  

            _Name:         cb-example-0000_

            _..._

            _Labels:       app=couchbase_

                          _couchbase_cluster=cb-example_

                          _couchbase_node=cb-example-0000_

                          _couchbase_node_conf=data_

                          _couchbase_server=true_

                          _*couchbase_service_data=enabled*_

             
            James Flather James Flather made changes -
            Link This issue causes CBSE-10397 [ CBSE-10397 ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Assignee Simon Murray [ simon.murray ] Prateek Kumar [ prateek.kumar ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Link This issue relates to K8S-1713 [ K8S-1713 ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Comment [ Do we need to pass this 9102 port to the REST API for CB Server like we have to for the others as an alternate address? On the `/node/controller/setupAlternateAddresses/external`

            It looks like we do here: 
            [https://docs.couchbase.com/server/current/rest-api/rest-set-up-alternate-address.html#list-alternate-addresses-and-port-numbers]  ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Comment [ Index only service pods should not expose 8092 ]
            tin.tran Tin Tran made changes -
            Comment [ Hi [~prateek.kumar]
            Will this fixed be included in 2.2.1 release? Or a different release?

            Thank you Patrick. ]
            arunkumar Arunkumar Senthilnathan made changes -
            Fix Version/s 2.2.1 [ 17700 ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            patrick.stephens Patrick Stephens (Inactive) made changes -
            Comment [ 9102 is a completely new port to expose by the looks of it. It's not available at all on NodePort services (affects Istio too) although it is on the pods and cluster IP ones. ]
            lynn.straus Lynn Straus made changes -
            Link This issue blocks K8S-2276 [ K8S-2276 ]
            prateek.kumar Prateek Kumar (Inactive) made changes -
            Link This issue has to be done before K8S-2320 [ K8S-2320 ]
            prateek.kumar Prateek Kumar (Inactive) made changes -
            Attachment ViewsSDK.py [ 151573 ]
            prateek.kumar Prateek Kumar (Inactive) made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              prateek.kumar Prateek Kumar (Inactive)
              patrick.stephens Patrick Stephens (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty