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,440 points
1,343 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,230 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,440 points
1,236 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,440 points
950 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,440 points
1,277 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,440 points
501 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,440 points
1,169 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,440 points
1,562 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,230 points
623 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,230 points
1,886 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