Skip to content

Dev Tips

Scott Trent edited this page Jul 9, 2024 · 1 revision

Regarding namespaces

Error messages and even denied pod deployment can be avoided by changing namespace security settings: For example, running the following commands will enable deployment to a newly created namespace called "testing":

oc label namespace testing pod-security.kubernetes.io/audit=baseline --overwrite
oc label namespace testing pod-security.kubernetes.io/enforce=baseline --overwrite
oc label namespace testing pod-security.kubernetes.io/warn=baseline --overwrite