Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Helm chart) PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25 #106

Open
soakes opened this issue May 20, 2024 · 0 comments

Comments

@soakes
Copy link

soakes commented May 20, 2024

Hello,

It seems that there is an issue with your helm chart which installs vault-crd. If the kubernetes cluster is greater then 1.25, the chart will fail to install with the following error message.

❯ helm install vault-crd vault-crd/vault-crd --set vaultCRD.vaultToken=hvs.xxxxxxxxxxxxxxxxxxx --set vaultCRD.vaultUrl=https://vault.example.com:8200
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "vault-crd-pod-running-policy" namespace: "default" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first

After doing some research, it seems that they are deprecated in Kubernetes v1.21, and then removed from Kubernetes in v1.25.

I am currently running version kubernetes version 1.28.xx, so it looks like the charts need some upgrades to make it function correctly.

image

https://kubernetes.io/docs/concepts/security/pod-security-policy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant