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

Expose ports for the injector so that a podmonitor can scrape the metrics #1031

Open
palmobar opened this issue Jun 19, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@palmobar
Copy link

Hi,
I want to scrape the metrics from each vault injector pod, right now it's not doable since the pods are not exposed in the deployment.

@palmobar palmobar added the enhancement New feature or request label Jun 19, 2024
@palmobar
Copy link
Author

Hi, any idea if we could try to solve it or that I'm doing it wrong? Right now I need to add a patch like so:

    strategicMergePatches:
    - apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: vault-agent-injector
        namespace: vault
      spec:
        template:
          spec:
            containers:
            - name: sidecar-injector
              ports:
              - containerPort: 8080
                name: traffic
                protocol: TCP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant