Complete the code to specify the Cluster Autoscaler deployment namespace.
kubectl apply -f cluster-autoscaler.yaml -n [1]The Cluster Autoscaler usually runs in the kube-system namespace where core Kubernetes components reside.
Complete the command to check the Cluster Autoscaler logs.
kubectl logs deployment/cluster-autoscaler -n kube-system -c [1]The container name in the Cluster Autoscaler deployment is usually cluster-autoscaler.
Fix the error in the Cluster Autoscaler command to scale nodes automatically.
kubectl autoscale deployment my-app --min=[1] --max=5 --cpu-percent=80
The minimum number of nodes must be at least 1 to allow scaling up from zero.
Fill both blanks to create a node group autoscaling configuration snippet.
""" apiVersion: autoscaling.k8s.io/v1 kind: ClusterAutoscaler metadata: name: cluster-autoscaler spec: scaleDown: enabled: [1] delayAfterAdd: [2] """
Scale down should be enabled (true) and delay after adding nodes is commonly set to 10m to avoid premature scale down.
Fill all three blanks to complete the Cluster Autoscaler deployment container args.
""" containers: - name: cluster-autoscaler image: k8s.gcr.io/autoscaling/cluster-autoscaler:v1.22.0 command: - ./cluster-autoscaler - --v=4 - --cloud-provider=[1] - --nodes=[2]:[3]:node-group-1 """
The cloud provider is gcp for Google Cloud. The node group has a minimum of 1 and maximum of 5 nodes.