
Explanation:
The correct answer is A because the gcloud command is used to create Kubernetes clusters on Google Cloud Platform, specifying the cluster name and the --num-nodes parameter to define the number of nodes. Options B and C are incorrect as kubectl is not used for creating clusters. Option D is incorrect because the number of nodes should be specified with the --num-nodes parameter, not as a standalone argument.
Ultimate access to all questions.
No comments yet.
You are tasked with setting up a new development Kubernetes cluster named 'project-1-cluster' that consists of 3 nodes. Which of the following commands correctly creates this cluster?
A
gcloud container clusters create project-1-cluster --num-nodes 3
B
kubectl clusters create project-1-cluster 3
C
kubectl clusters create project-1-cluster --num-nodes 3
D
gcloud container clusters create project-1-cluster 3