Kubernetes on cloud deploy with helm chart

  • What Grafana version and what operating system are you using?
    so i am using aws ec2 for kubernetes, and deployed using kops
  • ubuntu 20.04
  • kubernetes 1.2
  • kops 1.26.6
  • What are you trying to achieve?
    installing dashboard monitor for kubernetes
  • How are you trying to achieve it?
  • following docs kubernetes using helm chart
  • tryiing to edit CustomResourceDefinition adding label, annotation
  • tring install manual using helm and terraform
  • What happened?
    its got same error when trying install using helm chart and terraform

Release “grafana-k8s-monitoring” does not exist. Installing it now.
Error: Unable to continue with install: CustomResourceDefinition “alertmanagerconfigsmonitoringcoreoscom" in namespace “” exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "appkubernetesio/managed-by": must be set to “Helm”; annotation validation error: missing key "metahelmsh/release-name": must be set to “grafana-k8s-monitoring”; annotation validation error: missing key "metahelm*sh/release-namespace”: must be set to “awfui27”

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

helm repo add grafana grafana*github*io/helm-charts &&
  helm repo update &&
  helm upgrade --install --atomic --timeout 120s grafana-k8s-monitoring grafana/k8s-monitoring \
    --namespace "awfui27" --create-namespace --values - <<EOF
  name: my_cluster_name
    host: my_link
      username: "111111"
    host: my_link
      username: "1111111"
      defaultClusterId: my_cluster_name
        url: my_link
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    no error on Grafana UI
  • Did you follow any online instructions? If so, what is the URL?

Configure Kubernetes Monitoring with Grafana Kubernetes Monitoring Helm chart | Grafana Cloud documentation

Send Kubernetes metrics, logs, and events with Helm and Terraform to Grafana Cloud | Grafana Cloud documentation

Hi @samuraixheart,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the FAQs in the community :slight_smile:

Are you using Grafana Cloud free version or paid one?

Hi @samuraixheart , looks like the Prometheus Operator CRDs are already present on your machine. The k8s-monitoring Helm chart also tries to install them, but if they’re already there, it runs into this conflict.

Check out this doc to see what to do: k8s-monitoring-helm/charts/k8s-monitoring/docs/Troubleshooting.md at main · grafana/k8s-monitoring-helm · GitHub