Forum Navigation
You need to log in to create posts and topics.

Access Resources in Kubernetes cluster ClusterIP -> LoadBalancer


User working with Prometheus installed in kubernetes in a cluster environment cannot see the metrics / alerts /graphs / status management page.


Need to Change the type of the service from ClusterIP to NodePort in order to expose the service on the cluster IP

List all your Kubernetes services in monitoring namespace

kubectl get svc

get your service name for example: prometheus-grafana

run the following command

kubectl  patch svc prometheus-grafana -p ‘{“spec”: {“type”: “LoadBalancer”}}’

run the command again

kubectl get svc

look for prometheus-grafana entry

prometheus-grafana           LoadBalancer              80:30355/TCP

Access it using browser :30355

Uploaded files: