This lab provides practice scenarios to help prepare you for the Certified Kubernetes Application Developer (CKAD) 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 CKAD exam. Good luck!
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Run a Job on a Schedule
In the
one
Namespace, run a Job that executes repeatedly on a schedule. Use a CronJob calledpwd-runner
to do this.The Job should run the
pwd
command once every minute. Use thebusybox:stable
image. If the command takes longer than10
seconds to execute, it should be automatically terminated.Verify that the Job runs successfully at least once.
- Create a Deployment
Create a Deployment called
nginx-dep
in thetwo
Namespace.Use the
nginx:stable
image, and run with3
replicas. Expose port8081
, and add an environment variable to the containers calledNGINX_PORT
with the value8081
. This will cause thenginx
container to listen on port8081
.