Skip to content

ronakgpatel/ckad-prep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

ckad-prep

Some Tip:

The CKAD certification is an open book exam(you get access to kubernetes.io & its subdomain). And all question would have their answeres somehwere in the site however the KEY is to manage the time and clear as many questions as possible.

The key is accuracy with speed.

You can not afford to learn the concept during the exam. You need actual hands-on otherwise it would be difficult.

Below are few problem(s) that can be used for hands-on practicse on Kubernets.

*This are not actual certification questions.

You must be very fluent in using imperative commands when working on kubernetes. Following are few samples which you should be able to do with use of imperative commands only.

NOTE : Use imperative commands only

Create Pod with image=busybox which executes command : 'sleep 3600'

Create Pod with image=busybox which executes command : 'sleep 3600' with label: "duration=onehr"

Create a pod with name=busybox-pod, image=buysbox, namespace=ns-pod

Create a pod with name=busybox-pod, image=buysbox and run the command ' ls /var', once the command is completed the pod should automatically be deleted.

Deployment

Create a deployment with image=buysbox, replicas=3 in default namespace

Create a deployment with name=busybox-deployment, image=buysbox, namespace=ns01

Create a deployment with name=busybox-deployment, image=buysbox, expose the deployment containerPort: 80

Create a deployment with name=busybox-deployment, image=buysbox, make it accessible on port 30080 on node

Create a deployment with name=busybox-deployment, image=buysbox, namespace=ns02

Job(s) & Cronjobs

Create a job with name=busybox-job, image=busybox,args : echo date; sleep 10

Create a job with name=busybox-job, image=busybox,args : echo date; sleep 10 and it should run 10 times with 3 at a time

Create a job with name=busybox-job, image=busybox,args : sleep 30, and job should be terminated if it runs for more then 25 seconds.

Create a cronjob with name=busybox-cron, image=busybox, command : sleep 30 which runs every 5 minute.

Create deployment with name=busybox-deploy, image=busybox. Once the pod is up & running, change the image of the deployment to my-busybox.

Pod & Lables

Label the existing pod.

Apply the label "img=busybox" to the busybox-pod

Override the label "img" with the value "busybox-container" to the busybox-pod

Remove the label "img" from the busybox-pod

Service and Networking

Create deployment with image:nginx and expose it on container port 8088

Create deployment with image:nginx and expose it on port of the host node (nodePort)

About

Sample Questions for CKAD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published