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

Collect pod info and events for failed pod

    XMLWordPrintable

Details

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

    Description

      When an 'ephemeral' pod fails we log the failed pod and its events - https://github.com/couchbase/couchbase-operator/blob/1.2.x/pkg/util/k8sutil/k8sutil.go#L436-L473.

      However, we only seem to do this when the pod creation fails.

      Instead, it would be good to capture this information for any pod that we have detected has failed (has been failed over by Couchbase or is down), even if it has PVs and will be re-attached.

      This means that we will more easily be able to debug issues where Kubernetes is terminating a pod externally (for example, due to resource issues or draining) as these events will be captured in the logs.

      Attachments

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

        Activity

          People

            simon.murray Simon Murray
            matt.carabine Matt Carabine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty