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