Skip to content

Not working when Policy runAsNonRoot is set, need to set securityContext.runAsUser #35

@Alestrix

Description

@Alestrix

In our company's internally managed k8s platform the policy runAsNonRoot is set and this causes the deployment to fail with

Error: container has runAsNonRoot and image has non-numeric user (node), cannot verify user is non-root

After editing deployment.yaml and inserting this

      securityContext:
        runAsUser: 1000
        runAsGroup: 1000

in

the chart could be installed successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions