Skip to content

Deployment securityContext part is missing on creation #4815

@sebastien-helbert

Description

@sebastien-helbert

Setup

  • Rancher version: 2.6.2
  • Browser type & version: Google Chrome

Describe the bug
securityContext section is missing when created from new UI which prevents pods from starting when Pod Security Policy Support is enabled.

To Reproduce
Create a new workload of type Deployment from UI

Result

Expected Result

Add this section in yaml file like the old UI does :

        securityContext:
          allowPrivilegeEscalation: false
          capabilities: {}
          privileged: false
          readOnlyRootFilesystem: false
          runAsNonRoot: false

It may be somewhat related to #4238

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions