Couchbase operator on GKE

Hi Couchbase!

I’m very new to Couchbase and k8s too.

I’m struggling to deploy Couchbase operator using k8s on Google Cloud Platform.

This is what I’ve done so far:

  • go to google market place and configure couchbase autonomous operator.
  • almost did default configuration
  • kubectl apply -f created-cb-cluster.yaml below (this is a part of instruction of yours)
apiVersion: couchbase.com/v1
kind: CouchbaseCluster
metadata:
  name: cb-cluster-member
spec:
  baseImage: couchbase/server
  version: enterprise-6.0.1
  authSecret: couchbase-operator-1-secret
  exposeAdminConsole: true
  adminConsoleServices:
    - data
  cluster:
    dataServiceMemoryQuota: 256
    indexServiceMemoryQuota: 256
    searchServiceMemoryQuota: 256
    eventingServiceMemoryQuota: 256
    analyticsServiceMemoryQuota: 1024
    indexStorageSetting: memory_optimized
    autoFailoverTimeout: 120
    autoFailoverMaxCount: 3
    autoFailoverOnDataDiskIssues: True
    autoFailoverOnDataDiskIssuesTimePeriod: 120
    autoFailoverServerGroup: False
  buckets:
    - name: default
      type: couchbase
      memoryQuota: 256
      replicas: 1
      ioPriority: high
      evictionPolicy: fullEviction
      conflictResolution: seqno
      enableFlush: true
      enableIndexReplica: false
  securityContext:
    fsGroup: 1000
  servers:
    - size: 3
      name: all_services
      services:
        - data
        - index
        - query
        - search
        - eventing
        - analytics
      pod:
        volumeMounts:
          default: couchbase
          data:  couchbase
          index: couchbase
  volumeClaimTemplates:
    - metadata:
        name: couchbase
      spec:
        storageClassName: default-couchbase-operator-1-storeclass-19b2
        resources:
          requests:
            storage: 3Gi

Then, I opened endpoint of the ui service with changing spec type: LoadBalancer.

Thus, I had access to ui console but it is going to rebalance after for a while. The percentage of rebalancing is on 40% for long time. The log says it’s rebalancing 40.000xx, 40.000xx… very slowly (but before 40%, it was quick).

Why does it rebalance? and why slowly does it on 40%?

I don’t know why and I’m spending several days with this issues. Can you help me out?

plus, I’d like to know what’s wrong with what I’ve done?