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

APIs to get pod related events as given in 'kubectl describe podName' command

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • 1.0.0
    • None
    • operator

    Description

      Would be better if we are able to get the pod related events using the operator APIs as given in "kubectl describe <podname>". This will help us in validating the failure reason and verify the behavior more precisely.

      For example, if the pod creation is failing due to the missing certificate, the reason is displayed in the describe command's events as given below.

      Currently we are able to verify only if the pod is not placed in the cluster.

      Events:
        Type     Reason                 Age               From               Message
        ----     ------                 ----              ----               -------
        Normal   Scheduled              2m                default-scheduler  Successfully assigned test-couchbase-jmw2b-0003 to minikube
        Normal   SuccessfulMountVolume  2m                kubelet, minikube  MountVolume.SetUp succeeded for volume "couchbase-data"
        Normal   SuccessfulMountVolume  2m                kubelet, minikube  MountVolume.SetUp succeeded for volume "default-token-8jffn"
        Warning  FailedMount            23s               kubelet, minikube  Unable to mount volumes for pod "test-couchbase-jmw2b-0003_ashwin(4610b9d3-58d5-11e8-982c-080027ee3776)": timeout expired waiting for volumes to attach or mount for pod "ashwin"/"test-couchbase-jmw2b-0003". list of unmounted volumes=[couchbase-server-tls]. list of unattached volumes=[couchbase-data couchbase-server-tls default-token-8jffn]
        Warning  FailedMount            18s (x9 over 2m)  kubelet, minikube  MountVolume.SetUp failed for volume "couchbase-server-tls" : secrets "cluster-secret-tls-jmw2b" not found

       

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            ashwin.govindarajulu Ashwin Govindarajulu
            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