
Explanation:
The correct answer is C because the gcloud container clusters create command is used to create a Kubernetes cluster in Google Cloud, specifying the cluster name and the --num-nodes parameter to define the number of nodes. Options A and D are incorrect as kubectl is not used for creating clusters but for managing them. Option B 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
kubectl clusters create project-1-cluster --num-nodes 3
B
gcloud container clusters create project-1-cluster 3
C
gcloud container clusters create project-1-cluster --num-nodes 3
D
kubectl clusters create project-1-cluster 3