Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

CreateContainerConfigError should exit immediately #254

@agardnerIT

Description

@agardnerIT

Any pod where the init container fails will never be able to start. JES should fail quickly and not wait for the timeout.

Recreate Issue

Try to run a pod as root:

tasks:
      - name: "Do something"
        securityContext:
          runAsUser: 0
          runAsGroup: 0

Which results in:

Warning  Failed     13s (x12 over 2m27s)  kubelet            Error: container's runAsUser breaks non-root policy (pod: "job-executor-service-job-***(****)", container: init-job-executor-service-job-****1)
State:          Waiting
  Reason:       CreateContainerConfigError

Impact

Further tasks are blocked until the timeout (5mins by default).

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