GKE javascript API

Hi all,

I’ve been tasked with writing a program to read GKE data from the clusters. I’ve managed to list all my clusters and node pools using the nodejs client. Can I list all the pods/workloads too? I didn’t find any function that will let me do that. Appreciate any suggestions. Thanks in advance!
I should mention I am very new to GCP/k8s/API in general so please keep it simple if you can!


Not super familiar with that API but after taking a look, it seems like you would have to use the Kubernetes js client to get information from the clusters themselves (pods, etc). Get the K8s config through the getServerConfig call and use that to interact with the cluster using the K8s javascript client.