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

Error when deploying Prometheus exporter ( with ServiceMonitor disabled) #620

Open
henrikrexed opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@henrikrexed
Copy link

Description

When deploying kubescape with the prometheus exporter ( capabilities.prometheusExporter=enabled) and the serviceMonitor disabled (kubescape.servicemonitor.enable=false) generate an error due to missing Prometheus CRD.

Error: UPGRADE FAILED: resource mapping not found for name: "prometheus-exporter" namespace: "kubescape" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
ensure CRDs are installed first

Environment

Kubernetes cluster v1.36 on digitalocean

Steps To Reproduce

  1. use a cluster that does not have the prometheus operator installed
  2. Installe Kubescape with the prometheusExporter enabled

Expected behavior

The PrometheusExporter should deployed without any ServiceMonitor

Actual Behavior

Error when running the helm install:
Error: UPGRADE FAILED: resource mapping not found for name: "prometheus-exporter" namespace: "kubescape" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
ensure CRDs are installed first

@henrikrexed henrikrexed added the bug Something isn't working label Feb 20, 2025
@matthyx matthyx moved this to Triage in Kubescaping Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triage
Development

No branches or pull requests

1 participant