Skip to content

Error with PodSecurity restricted #260

@Syndlex

Description

@Syndlex

Hey Thanks for implementing this Operator:

We have the Following Problem:

Our Cluster is Setup with higher restriced PodSecurity.

So when I create a Valkey cluster i get this with my Pods:

create Pod keyval-0 in StatefulSet keyval failed error: pods "keyval-0" is forbidden: violates PodSecurity "restricted:latest":
allowPrivilegeEscalation != false (container "volume-permissions" must set securityContext.allowPrivilegeEscalation=false),
unrestricted capabilities (container "volume-permissions" must set securityContext.capabilities.drop=["ALL"]),
runAsNonRoot != true (pod or container "volume-permissions" must set securityContext.runAsNonRoot=true),
runAsUser=0 (container "volume-permissions" must not set runAsUser=0),
seccompProfile (pod or container "volume-permissions" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

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