QuestionQ122

Managing and provisioning a cloud solution infrastructure

You want your Google Kubernetes Engine cluster to automatically add or remove nodes according to CPU load.

What should you do?

  • A Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
  • B Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.
  • C Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.
  • D Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.
Explanation

A HorizontalPodAutoscaler uses a target CPU utilization to adjust the number of workload Pods. GKE Cluster Autoscaler adjusts node-pool capacity to accommodate Pods that cannot be scheduled and can remove unneeded nodes. Together, they provide workload scaling based on CPU and corresponding automatic node scaling.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!