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

Wrong service selector in ServiceMonitor #1047

Open
Vovcharaa opened this issue Jul 25, 2024 · 0 comments
Open

Wrong service selector in ServiceMonitor #1047

Vovcharaa opened this issue Jul 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Vovcharaa
Copy link

Describe the bug
Under certain conditions vault chart does not install correct ServiceMonitor selector.
When I set values to server.service.active: false and service.ha.enabled: true, ServiceMonitor is created with selector vault-active: 'true' but only service with vault-internal: true label exists.

To Reproduce
Steps to reproduce the behavior:

  1. Install chart with provided values
  2. Wrong ServiceMonitor is created and target is not observable in prometheus

Expected behavior
ServiceMonitor is created with correct selector

Environment

  • Kubernetes version: 1.28
    • Distribution or cloud vendor (OpenShift, EKS, GKE, AKS, etc.): EKS
  • vault-helm version: 0.28.0

Chart values:

server:
  enabled: true
  service:
    type: NodePort
    active:
      enabled: false
  standalone:
    enabled: false
  ha:
    enabled: true
    replicas: 1
    raft:
      enabled: false
    config: |
      ui = true
      listener "tcp" {
        tls_disable = 1
        address = "[::]:8200"
        cluster_address = "[::]:8201"
        # Enable unauthenticated metrics access (necessary for Prometheus Operator)
        telemetry {
         unauthenticated_metrics_access = "true"
        }
      }
      telemetry {
        prometheus_retention_time = "30s"
        disable_hostname = true
      }

serverTelemetry:
  serviceMonitor:
    enabled: true
    selectors: 
      release: kube-prometheus-stack
@Vovcharaa Vovcharaa added the bug Something isn't working label Jul 25, 2024
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
None yet
Development

No branches or pull requests

1 participant