Skip to content

fix(k8s): specify runAsUser for mattermost-operator #2932

Closed

Description

@dan-petty

Problem

The pod mattermost-operator fails to start in namespace mattermost-operator.
The kubelet reports this error:
Error: container has runAsNonRoot and image has non-numeric user (nonroot), cannot verify user is non-root.

Cause

The Helm values file k8s/mattermost/mattermost-operator-values.yaml sets runAsNonRoot: true.
The container image mattermost/mattermost-operator:v1.25.4 sets user nonroot by name.
The kubelet cannot confirm that the user is non-root without an explicit user identifier.

Solution

Configure explicit numeric user identifiers in k8s/mattermost/mattermost-operator-values.yaml.
Set runAsUser: 65532 and runAsGroup: 65532 in podSecurityContext.
Add an invariant test to verify these settings.

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/medium
    effort/low
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. The mattermost-operator pod cannot start at all, blocking that component, but it is one workload in a broader homelab deployment.
    • Value: Medium. Unblocks the mattermost-operator so it can deploy and function as intended.
    • Effort: Low. Set two numeric values in one YAML file and add one invariant test.
    • Related: fix(k8s): permit mattermost-operator and cnpg-system in homelab project destinations #2925, which asks for a different change. Both target the mattermost-operator component, but #2925 fixes Argo CD destination permissions while the candidate fixes the pod securityContext values.
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Oct 31, 2026
  4. removed
    status/in-review
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions