Open richzhu369 opened 1 year ago
I already installed the manifests files and was able to access Grafana using the port-forward as described in the docs. Do you already tried this? https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/access-ui.md#grafana
If you need to expose Grafana using a LoadBalancer service (as MetalLB), maybe you need to remove the readinessProbe section in grafana deployment(that's the only way that works for me): https://github.com/prometheus-operator/kube-prometheus/blob/035b09f42441d4630b3a3de4e4a490d19b1ba5e4/manifests/grafana-deployment.yaml#L38-L41
Environment: k3s (v1.28.3) kube-prometheus (release-0.13)
i delete grafana readinessProbe and promethus-k8s livenessProbe ,
and i run the command kubectl --namespace monitoring port-forward svc/grafana 3000
got an error page
i using ingress-nginx controller expose grafana, got an error page 504
as i say ,i can access login page inside container , curl http://127.0.0.1:3000
, but i can't access login page with grafana serivice, curl http://grafana:3000
i think this problem maybe about grafana and service of grafana
and i still inside this container, i can access another service, for example curl http://api-service.prod:3000
, but can not access grafana service name curl http://grafana:3000
我也碰到了这种问题,而且还有config挂载报错,请问你是怎么解决的啊
我也碰到了这种问题,而且还有config挂载报错,请问你是怎么解决的啊
目前是无解的,最后我使用helm自己装的 prometheus 和 grafana
Mapping required:
kubectl --namespace monitoring port-forward svc/prometheus-k8s 9090 --address 0.0.0.0
Docs
https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/access-ui.md
What happened? when i install kube-prometheus in my k8s cluster , i get a bug , grafana always unhealthly And i can not access grafana page , always got http 503 error, more detail as follow
when i run
kubectl get pod -n monitoring
, the pod status is runinngbut when i describe pod , i get error, run command
kubectl describe pod grafana-69f6b485b9-xmhzr -n monitoring
if i go inside pod , run command
curl 127.0.0.1:3000
it's ok i got grafana login pageand i run command
curl 172.20.75.53:3000
that's my endpoints ip , it's still okif i run command
curl 10.68.160.10:3000
this ip is my grafana service ip, i got same problem ,time outHow to reproduce it (as minimally and precisely as possible):
Environment
Prometheus Operator version:
grafana/grafana:10.2.2 prometheus-operator:v0.70.0 kube-rbac-proxy:v0.15.0
Kubernetes version information:
kubectl version
Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, tectonic-installer, etc.
Manifests:
Anything else we need to know?:
i show my service and ingress run command
kubectl get svc -n monitoring
run command
kubectl get ingress -n monitoring grafana-ingress -o yaml