Complete the command to enable monitoring on a GKE cluster.
gcloud container clusters create my-cluster --enable-[1]The --enable-stackdriver-kubernetes flag enables Google Cloud's monitoring and logging for GKE clusters.
Complete the command to view logs of a pod named 'web-server' in namespace 'default'.
kubectl logs [1] -n defaultThe kubectl logs command takes the pod name directly. Using just web-server works if it is the pod name.
Fix the error in the command to enable logging on an existing cluster named 'prod-cluster'.
gcloud container clusters update prod-cluster --[1]-loggingThe correct flag to enable logging is --enable-logging. Other options are invalid.
Fill both blanks to create a monitoring workspace and link it to a GKE cluster.
gcloud monitoring workspaces [1] --project=[2]
You create a monitoring workspace with create and specify the project ID to link it.
Fill all three blanks to filter logs for pods with label 'app=frontend' in Stackdriver Logging.
resource.type="k8s_container" AND labels.k8s-pod/app=[1] AND resource.labels.namespace_name=[2] AND severity [3] "ERROR"
The filter uses the label value "frontend", namespace "default", and severity operator >= to show errors and above.