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

Installation of Grafana failed #831

Closed
Leynakindle opened this issue Jul 4, 2023 · 2 comments
Closed

Installation of Grafana failed #831

Leynakindle opened this issue Jul 4, 2023 · 2 comments
Labels
kind/bug Something isn't working

Comments

@Leynakindle
Copy link

Leynakindle commented Jul 4, 2023

Describe the bug
I failed to install Grafana using the installation script provided in the official documentation, and it shows errors related to PodSecurityPolicy.

Reproduce steps

  1. helm repo add grafana https://grafana.github.io/helm-charts
  2. helm install grafana --version 6.11.0
    -f https://raw.githubusercontent.com/gocrane/helm-charts/main/integration/grafana/override_values.yaml
    -n crane-system
    --create-namespace grafana/grafana
截屏2023-07-04 12 36 23

Error log
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "grafana" namespace: "crane-system" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first, resource mapping not found for name: "grafana-test" namespace: "crane-system" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first]
截屏2023-07-04 12 34 43

Environment (please complete the following information):

  • K8S(RKE2) Version: v1.27.2+rke2r1
  • Helm Version: v3.12.1
@Leynakindle Leynakindle added the kind/bug Something isn't working label Jul 4, 2023
@qmhu
Copy link
Member

qmhu commented Jul 6, 2023

k8s version is too high for policy/v1beta1. you could try use larger version grafana for installation.

@Leynakindle
Copy link
Author

k8s version is too high for policy/v1beta1. you could try use larger version grafana for installation.

thanks, i have tried installing the latest version of Grafana, and the issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants