cdk8s-team / cdk8s-plus

A software development framework that provides high level abstractions for authoring Kubernetes applications.
https://cdk8s.io/docs/latest/plus/
Apache License 2.0
133 stars 33 forks source link

Add back security context defaults #2611

Open vinayak-kukreja opened 1 year ago

vinayak-kukreja commented 1 year ago

Description of the feature or enhancement:

Security context defaults for containers were removed due to different issues reported. A better way needs to be investigated for adding these defaults.

Use Case:

These defaults were added as part of best practices and re-adding these would help us align again with them.

Proposed Solution:

There needs to be an investigation of what issues this can cause before re-adding these. For instance, the following were the ones that were reported,


This is a :rocket: Feature Request

abdulaziz-mohammed commented 8 months ago

Using cdk8s to deploy into GKE Autopilot Mode is a nightmare as I have to manually remove the "Security Context" section that is added by default before deploying. wish there was an option to just skip adding it.