How to get authentication credentials of GKE Cluster from command line

+2 votes

Hi Guys,

I have created one GKE Cluster on GCP Cloud. I want to get the credentials of this cluster from the command line. How can I get that?

Aug 25, 2020 in GCP by akhtar
• 38,260 points
1,678 views

1 answer to this question.

–1 vote

Hi@akhtar,

After creating your cluster, you need to get authentication credentials to interact with the cluster. You can use the below command to get your cluster credentials.

$ gcloud container clusters get-credentials cluster-name

This command configures kubectl to use the cluster you created.

answered Aug 25, 2020 by MD
• 95,460 points

Related Questions In GCP

0 votes
1 answer
+2 votes
1 answer

How to launch one instance on GCP Cloud from command line?

Hi@akhtar, You can compute service in GCP to launch ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,460 points
1,010 views
+2 votes
1 answer

How to create a VPC on GCP from command line?

Hi@akhtar, To create a personal network, you need ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,460 points
1,454 views
0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24, 2020 in GCP by MD
• 95,460 points
557 views
+2 votes
1 answer

How to create a GKE cluster from command line?

Hi@MD, A cluster consists of at least one cluster master machine ...READ MORE

answered Aug 25, 2020 in GCP by akhtar
• 38,260 points
1,537 views
+2 votes
1 answer

How to deploy one application on GKE cluster?

Hi@akhtar, GKE uses Kubernetes objects to create and ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
744 views
+2 votes
1 answer

How to expose the deployment on GKE Cluster?

Hi@akhtar, After deploying the application, you need to ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
1,423 views
+2 votes
1 answer

How to delete GKE Cluster from command line?

Hi@akhtar, You can delete your GKE Cluster from ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
2,092 views
+2 votes
1 answer

How to do SSH in GCP instance from command line?

Hi@akhtar, You can do SSH to GCP instance ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,460 points
1,064 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP