Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30308

Enhance Nuxeo termination log in k8s deployment

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: helm-chart-next
    • Component/s: Helm Chart

      Description

      K8s allows to store some informations when a pod is stopping.

      A simple default for the helm chart could be to store the content of the running status, because:

      • it's not easy to get (rsh + curl in the pod)
      • its not present in the logs
      ...
      spec:
        containers:
          - image: nuxeo:LTS
            lifecycle:
              preStop:
                exec:
                  command:
                    - /bin/bash
                    - -c
                    - "/usr/bin/curl -m 3 localhost:8080/nuxeo/runningstatus > /dev/termination-log"
            terminationMessagePolicy: FallbackToLogsOnError
      ...
      

      cf for the in depth description https://dmetzler.github.io/troubleshooting-java-apps-in-k8s/

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmetzler Damien Metzler
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: