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!
Successfully complete this lab by achieving the following learning objectives:
- Run a Job on a Schedule
oneNamespace, run a Job that executes repeatedly on a schedule. Use a CronJob called
pwd-runnerto do this.
The Job should run the
pwdcommand once every minute. Use the
busybox:stableimage. If the command takes longer than
10seconds to execute, it should be automatically terminated.
Verify that the Job runs successfully at least once.
- Create a Deployment
Create a Deployment called
nginx:stableimage, and run with
3replicas. Expose port
8081, and add an environment variable to the containers called
NGINX_PORTwith the value
8081. This will cause the
nginxcontainer to listen on port