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

Prometheus set up in CRD refers to the operator deployed in the same namespace #354

Open
rgordill opened this issue Jul 7, 2021 · 2 comments

Comments

@rgordill
Copy link

rgordill commented Jul 7, 2021

Is your feature request related to a problem? Please describe.
When you install prometheus operator using OLM, it is installed in a common namespace (operators, or openshift-operators). However, related with the code in https://github.com/argoproj-labs/argocd-operator/blob/master/pkg/controller/argocd/prometheus.go#L177, it refers to prometheus-k8s serviceaccount, which should be in the same namespace and not in the global one.

Describe the solution you'd like
A way to deploy prometheus which is not coupled to where the prometheus operator is deployed.

Describe alternatives you've considered
Copying the prometheus-k8s SA in the namespace, and adding it to the clusterrolebinding.

Additional context
None.

@iam-veeramalla
Copy link
Collaborator

Hi @rgordill , Can you please provide more information on what is the issue that you are running into and steps to reproduce ? Thanks in Advance :)

@rgordill
Copy link
Author

rgordill commented Jul 9, 2021

Hi @iam-veeramalla.

Yes, to reproduce the issue do the following:

  • Deploy a prometheus operator in a namespace with cluster-wide scope
  • Deploy argocd operator in any namespace (ex. argocd).
  • Deploy an argocd-server with prometheus enabled=true

It will not spin up the prometheus server to gather the metrics. You need to deploy the prometheus operator in the same namespace to get it working.

You can easily deploy a prometheus operator cluster-wide if you deploy OLM (Operator Lifecycle Manager) and prometheus from there. (See https://operatorhub.io/operator/prometheus, and follow the install instructions, clicking in the "install" button).

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants