Skip to content

[Bug] CKAD 2 Question 2: VolumeMounts cause main container to fail #62

Description

@Nils-Berghs

Describe the bug

When applying the yaml as in the solution (or with the sidecar as an init/sidecar container) the main-container fails to start, the logs show:

[alert] could not open error log file: Open() "/var/log/nginx/error.log" failed (2: No such file or directory)

I think this is because mounting the emptyDir /var/log, removes nginx's expected directory structure

Environment (please complete the following):

Report in Depth

The exercise can not be completed within reasonable time

Steps to reproduce

Yes, just run the exam

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions