The Kong Helm chart still contains a legacy podSecurityPolicy section for backward compatibility, but it should be left disabled (enabled: false, the default) on any Kubernetes 1.25+ cluster, since enabling it renders a manifest for an API that no longer exists and will fail to apply.
For pod security hardening on current Kubernetes versions, we recommend one of the following instead:
- Pod Security Admission, Kubernetes’ built-in replacement for PSP, which enforces the Pod Security Standards via namespace labels (for example,
pod-security.kubernetes.io/enforce: restricted).
- A policy engine such as OPA Gatekeeper or Kyverno, for more granular or custom policy enforcement than Pod Security Admission alone provides.
Kong does not have any off the shelf step-by-step guides on this type of work as it is on a per-requirement basis and this will change depending on your organization. However, we hope the above guide will provide a basis to start this type of customization.