load watcher runs on default port 2020 don't work

Viewed 57

i am trying to deploy an image and associated with a service (NodePort), i just create the image and try to use a specific port 2020 like it say here: enter image description here

but i still having problem , did any one can explain to me haw to do it ? i use Kubernetes metrics server and it's running BTW. here the repository am using so you could understand the big picture

so GET/WATCHER don't return any think wen i run it in my terminal

and i create the image and then run the pod and it's working but the logs show this error :

time="2022-09-18T15:44:09Z" level=error msg="received error while fetching metrics: Get \"https://10.96.0.1:443/apis/metrics.k8s.io/v1beta1/nodes\": dial tcp 10.96.0.1:443: connect: no route to host" func="github.com/paypal/load-watcher/pkg/watcher.(*Watcher).StartWatching.func1" file="/go/src/github.com/paypal/load-watcher/pkg/watcher/watcher.go:131"

so to sum up i would like to deploy the load-watcher as a service and see the result on the port 2020 like he say or any other port. thanks again.

0 Answers
Related