Description
Deploying the helm charts in a security hardened kubernetes environment fails because of some security violoations for namespaces created with the restricted policy.
Expected behaviour
Ability to deploy helmcharts in a reststricted kubernetes namespace.
Step to reproduce
Create a restricted kubernetes namespace. Try to deploy the services.
Environment
Kubernetes version 1.33.5.
Additional information
You can read about the restricted kubernetes security policy here.
The configuration for creating a namespace with a restricted policy is like this:
apiVersion: v1
kind: Namespace
metadata:
labels:
pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/enforce-version: latest
name: restircted