Share via

exposing the pods

BALAKRISHNA A 86 Reputation points
2021-05-13T16:31:07.823+00:00

we are planning deploy the Prometheus in the AKS and grafana tool in VM deployed in same Vnet.

Its possible expose the Prometheus pod as node port instead load balancer and so grafana vm can able to access the Prometheus pod through nodeport with out public IP

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

0 comments No comments

Answer accepted by question author

prmanhas-MSFT 17,976 Reputation points Microsoft Employee Moderator
2021-05-17T09:34:27.81+00:00

@BALAKRISHNA A Apologies for the delay in response and all the inconvenience caused because of the issue.

Yes you can deploy the Prometheus in the AKS as per your requirement.. Here is an example of the prometheus service of type Node Port under the "Exposing Prometheus as a Service [NodePort & LoadBalancer]" section at https://devopscube.com/setup-prometheus-monitoring-on-kubernetes/. The service discovery url (datasources.url) of grafana config should point to the correct endpoint (<nodeIP>:<nodePort>)

You can also create the Prometheus Service as an internal LoadBalancer type service as mentioned here which will also not involve any Public IP and does not depend on ports of the node VM.

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.