Helm Chart installation fails with error "no matches for kind "PodSecurityPolicy" in version "policy/v1beta1""

 Problem

When trying to install HiveMQ using Helm Charts, you face the following error

Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "hivemq-hivemq-operator" namespace: "default" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1" ensure CRDs are installed first

 Solution

This happens because PodSecurityPolicy in the policy/v1beta1 API version is no longer be available in K8s v1.25 and later.

Please use the steps mentioned in https://hivemq.atlassian.net/servicedesk/customer/portal/1/article/2348744937 to resolve the issue.

 Related articles