gcloud
automatically configure your ~/.kube/config
file. This file is used to authenticate you when you use kubectl, the native CLI for interacting with K8s clusters. Try this command.~/.kube/config
file to see the generated credentials. This file will be used to automatically refresh access tokens based on the same identity that your active gcloud
session is using. This of course requires the correct permissions in place.