What should you do?

You created a cluster.YAML file containing

✑ resources:

✑ name: cluster

✑ type: container.v1.cluster

✑ properties:

✑ zone: europe-west1-b

✑ cluster:

✑ description: My GCP ACE cluster

✑ initialNodeCount: 2

You want to use Cloud Deployment Manager to create this cluster in GKE.

What should you do?
A . gcloud deployment-manager deployments create my-gcp-ace-cluster –config cluster.yaml
B . gcloud deployment-manager deployments create my-gcp-ace-cluster –type container.v1.cluster –config cluster.yaml
C . gcloud deployment-manager deployments apply my-gcp-ace-cluster –type container.v1.cluster –config cluster.yaml
D . gcloud deployment-manager deployments apply my-gcp-ace-cluster –config cluster.yaml

Answer: D

Explanation:

gcloud deployment-manager deployments create creates deployments based on the configuration file. (Infrastructure as code). All the configuration related to the artifacts is in the configuration file. This command correctly creates a cluster based on the provided cluster.yaml configuration file.

Ref: https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/create

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments