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 with a Label of app=auth in the Web Namespace That Is Utilizing the Most CPU
Before doing this step, please wait a minute or two to give our backend script time to generate CPU load. 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
.