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

kustomize + argoCD #2356

Open
Kouzi99 opened this issue Dec 12, 2024 · 0 comments
Open

kustomize + argoCD #2356

Kouzi99 opened this issue Dec 12, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Kouzi99
Copy link

Kouzi99 commented Dec 12, 2024

After using --enable-helm in ArgoCD to resolve #2349 , the ServiceMonitor stopped deploying. I'm not sure if this is related to the release name, which I had to provide during the Kustomize build to avoid the default RELEASE-NAME prefix before the trivy-operator deployment name. I'm curious if anyone has had a similar experience or if you have any solutions. For now, I manually add the ServiceMonitor to the Kustomize file. I would also appreciate any advice on how to remove the release name in ArgoCD, Kustomize, and Helm deployment.

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
  - name: trivy-operator
    repo: https://zy.xy.org/repository/epa-helm
    version: 0.25.0
    releaseName: trivy-operator
    namespace: trivy-system
    valuesFile: values.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: trivy-operator
  namespace: trivy-system
  labels:
    app.kubernetes.io/instance: trivy-operator
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: trivy-operator
    app.kubernetes.io/version: 0.23.0
    argocd.argoproj.io/instance: trivy-operator
    helm.sh/chart: trivy-operator-0.25.0
    release: kube-prometheus-stack
spec:
  endpoints:
    - honorLabels: true
      interval: 30s
      port: metrics
      scheme: http
  selector:
    matchLabels:
      app.kubernetes.io/instance: trivy-operator
      app.kubernetes.io/name: trivy-operator
@Kouzi99 Kouzi99 added the kind/bug Categorizes issue or PR as related to a bug. label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant