Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
This is basically the function of a kubectl get pods/nodes command, except I want to be able to do this through an application running in a container deployed on Cloud Run. I want to be able to get this information for any of the clusters in my project. I'm using Go for my app and I've tried a thousand different things to get to be able to get this info from the Kube API but nothing has worked. I can get it to work locally using something very similar to https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go but because I don't have a kubeconfig file in the container, this wouldn't work with Cloud Run. I'd really appreciate any help!