• Kubernetes Submit Queue's avatar
    Merge pull request #52503 from joelsmith/journald-log-fallback · e3e2e24c
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 54040, 52503). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Get fallback termination msg from docker when using journald log driver
    
    **What this PR does / why we need it**:
    
    When using the legacy docker container runtime and when a container has `terminationMessagePolicy=FallbackToLogsOnError` and when docker is configured with a log driver other than `json-log` (such as `journald`), the kubelet should not try to get the container's log from the json log file (since it's not there) but should instead ask docker for the logs.
    
    **Which issue this PR fixes** fixes #52502
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    Fixed log fallback termination messages when using docker with journald log driver
    ```
    e3e2e24c
docker_service.go 19.5 KB