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

Log Level is not being applied to CNG Configmap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.0
    • None
    • None
    • None
    • 5 - Forces of Destiny
    • 1

    Description

      The configmap is not getting reconciled with the updated information from the cluster spec.

      Also, the Configmap is not being mounted. It is applied as a volume to the pod, but is not mounted on the container.

      brett.lawson@bretts-m1 cbdinocluster % kubectl describe configmap couchbase-cloud-native-gateway-config-cluster -n cbdc2-1fced3ab793e4f70ab20c4043e304de0
      Name:         couchbase-cloud-native-gateway-config-cluster
      Namespace:    cbdc2-1fced3ab793e4f70ab20c4043e304de0
      Labels:       app=couchbase
                    couchbase_cluster=cluster
                    operator.couchbase.com/version=2.7.0
      Annotations:  operator.couchbase.com/version: 2.7.0
       
      Data
      ====
      cloud-native-gateway.json:
      ----
      {
        "log-level": ""
      }
       
      BinaryData
      ====
       
      Events:  <none>
      

      Also.. See how the mount is not present on the pod, although the volume is

      Containers:
        ...
        cloud-native-gateway:
          Container ID:  cri-o://31d496c342593f75991bb6b3be7d3ebef730d7fece546516f7533947eae79712
          Image:         ghcr.io/cb-rhcc/cloud-native-gateway:0.2.1-137
          Image ID:      ghcr.io/cb-rhcc/cloud-native-gateway@sha256:39edfb6d205260d2117f29c70890c9bbc4edae74039eefd8df1462bcbf0544fb
          Ports:         18098/TCP, 18099/TCP
          Host Ports:    0/TCP, 0/TCP
          Args:
            --config
            /etc/couchbase/cloud-native-gateway.json
            --watch-config
            --cert
            /var/run/secrets/couchbase.com/couchbase-cng-tls/tls.crt
            --key
            /var/run/secrets/couchbase.com/couchbase-cng-tls/tls.key
            --daemon
            --auto-restart
            --cb-host
            127.0.0.1
          State:          Running
            Started:      Thu, 14 Mar 2024 14:01:35 -0700
          Ready:          False
          Restart Count:  0
          Readiness:      http-get http://:9095/ready delay=60s timeout=1s period=60s #success=1 #failure=3
          Environment:
            STG_WEB_PORT:  9095
            STG_CB_USER:   <set to the key 'username' in secret 'couchbase-cloud-native-gateway-admin-secret-cluster'>  Optional: false
            STG_CB_PASS:   <set to the key 'password' in secret 'couchbase-cloud-native-gateway-admin-secret-cluster'>  Optional: false
          Mounts:
            /var/run/secrets/couchbase.com/couchbase-cng-tls from couchbase-cloud-native-gateway-volume (ro)
            /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-cp2lk (ro)
      ...
      Volumes:
        couchbase-cloud-native-gateway-volume:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  couchbase-cloud-native-gateway-self-signed-secret-cluster
          Optional:    false
        couchbase-cloud-native-gateway-config-volume:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      couchbase-cloud-native-gateway-config-cluster
          Optional:  false
        couchbase-server-tls-ca:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  cluster-tls-ca-shadow
          Optional:    false
        kube-api-access-cp2lk:
          Type:                    Projected (a volume that contains injected data from multiple sources)
          TokenExpirationSeconds:  3607
          ConfigMapName:           kube-root-ca.crt
          ConfigMapOptional:       <nil>
          DownwardAPI:             true
          ConfigMapName:           openshift-service-ca.crt
          ConfigMapOptional:       <nil>
      

      Attachments

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

        Activity

          People

            usamah.jassat Usamah Jassat
            justin.ashworth Justin Ashworth
            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