Skip to content

Improved build logs when errors occur during container startup #398

@rocketeerbkw

Description

@rocketeerbkw

One of the steps in a deployment that can have failures is Applying Deployments. This is the part where k8s is attempting to rollout the new container images.

Currently, if a rollout fails, the build logs might not be totally clear. We just output the "raw" k8s conditions:

nginx-476fb88445-f9cw7  Running Ready   containers with unready status: [nginx]
nginx-476fb88445-f9cw7  Running ContainersReady containers with unready status: [nginx]

But there are multiple reasons that a container can be "unready:" Applications failures (pods crashing), application delays (pods fail to start in time), miconfiguration (pods listening on wrong port).

I think we can do a better job of looking at these error cases and providing more useful errors to users in the build logs. We can translate the raw k8s messages into steps users can take in Lagoon to fix deployment issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions