How to setup basic auth for Prometheus deployed on K8s cluster using yamls??

I was able to achieve this easily when Prometheus was deployed on a host locally using tar file. But when it is deployed as a pod in K8s cluster, tried almost everything on the internet but no luck.

Any kind of help would be really appreciated!



1 Answer 1


You need to add the required annotations to the ingress as required.For nginx, you can follow this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.