How to create a GKE cluster from command line

+2 votes

Hi Guys,

I am new to GKE service in GCP Cloud. I want to create one cluster from my command line. How can I do that?

Aug 25, 2020 in GCP by MD
• 95,460 points
1,544 views

1 answer to this question.

0 votes

Hi@MD,

A cluster consists of at least one cluster master machine and multiple worker machines called nodes. Nodes are Compute Engine virtual machine (VM) instances that run the Kubernetes processes necessary to make them part of the cluster. You deploy applications to clusters, and the applications run on the nodes.

The following command creates a one-node cluster. Replace cluster-name with the name of your cluster.

$ gcloud container clusters create cluster-name --num-nodes=1
answered Aug 25, 2020 by akhtar
• 38,260 points

Related Questions In GCP

+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,469 views
0 votes
1 answer

How to create a new project in GCP using the command line?

Hi@akhtar, You need to configure GCP SDK in ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,460 points
1,154 views
+2 votes
1 answer

How to get authentication credentials of GKE Cluster from command line?

Hi@akhtar, After creating your cluster, you need to ...READ MORE

answered Aug 25, 2020 in GCP by MD
• 95,460 points
1,702 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
769 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,444 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,121 views
0 votes
1 answer

How to create a Cloud Filestore instance in GCP?

Hi@MD, You can create a Cloud Filestore instance in ...READ MORE

answered Nov 10, 2020 in GCP by akhtar
• 38,260 points
836 views
+2 votes
1 answer

How to activate GCP Cloud Shell?

Hi@MD, You can follow the below steps to ...READ MORE

answered Aug 23, 2020 in GCP by akhtar
• 38,260 points
2,485 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