gocrane / crane

Crane is a FinOps Platform for Cloud Resource Analytics and Economics in Kubernetes clusters. The goal is not only to help users to manage cloud cost easier but also ensure the quality of applications.
https://gocrane.io
Apache License 2.0
1.85k stars 378 forks source link

Installation of Grafana failed #831

Closed Leynakindle closed 1 year ago

Leynakindle commented 1 year ago

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):

qmhu commented 1 year ago

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

Leynakindle commented 1 year ago

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.