This lab provides practice scenarios to help prepare you for the Certified Kubernetes Administrator (CKA) exam. You will be presented with tasks to complete as well as server(s) and/or an existing Kubernetes cluster to complete them in. You will need to use your knowledge of Kubernetes to successfully complete the provided tasks, much like you would on the real CKA exam. Good luck!
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Count the Number of Nodes That Are Ready to Run Normal Workloads
Determine how many nodes in the cluster are ready to run normal workloads (i.e., workloads that do not have any special tolerations).
Output this number to the file
/k8s/0001/count.txt
.- Retrieve Error Messages from a Container Log
In the
backend
namespace, check the log for theproc
container in thedata-handler
Pod.Save the lines which contain the text
ERROR
to the file/k8s/0002/errors.txt
.- Find the Pod That Is Utilizing the Most CPU within a Namespace
Determine which Pod in the
web
namespace with the labelapp=auth
is using the most CPU. Save the name of this Pod to the file/k8s/0003/cpu-pod.txt
.