I have a setup where k8s is running. When i run the "curl http://< host-ip>/api/v1/pods" i get all the pod details running on my setup. I need to do something similar using the k8s client instead, using the token/certificate authentication.
I did see some code which is similar "How can I create a simple client app with the Kubernetes Go library?" but this is not helping me much.