I am retrieving a list of Clusters from GKE using GKE Rest API. Next, I need to retrieve containers information from Kubernetes API Server for a particular GKE cluster. There are two authentication methods known to me which can be used to authenticate a cluster with Kubernetes API. First One is Basic Authentication and the second one is Authentication using client certificate and client key. I have found out Here that both of these approaches are no more recommended.
My question is that what other authentication method I can use to authenticate my GKE cluster with Kubernetes API using its Java client library.