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 24, 2020 in GCP by MD
• 94,990 points
101 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 24, 2020 by akhtar
• 38,130 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
• 94,990 points
126 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
• 94,990 points
33 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 24, 2020 in GCP by MD
• 94,990 points
99 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 24, 2020 in GCP by MD
• 94,990 points
105 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 24, 2020 in GCP by MD
• 94,990 points
84 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 24, 2020 in GCP by MD
• 94,990 points
93 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,130 points
53 views
+2 votes
1 answer

How to activate GCP Cloud Shell?

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

answered Aug 22, 2020 in GCP by akhtar
• 38,130 points
92 views