Get startedGet started for free

Configuring connect gateway for authentication and authorization

1. Configuring connect gateway for authentication and authorization

In this section, you'll learn the essential steps to configure connect gateway so you can access all your clusters with ease. The first step is to enable the GKE fleet APIs for your Google Cloud project. Next, register your Kubernetes clusters, GKE, or external with a GKE fleet. This establishes the Connect Gateway connection. Next, configure IAM permissions. Grant the roles/gkehub.viewer role to users who will retrieve kubeconfig files so they can use kubectl through Connect Gateway. Within each Kubernetes cluster, use rbac to grant users specific permissions to access Kubernetes resources. Create role bindings for namespace-specific permissions or cluster role bindings for cluster-wide permissions. After granting the necessary IAM permissions, users can retrieve the kubeconfig file using the gcloud container fleet memberships get-credentials command and use kubectl to interact with the registered clusters.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.