Free CKAD Exam Braindumps (page: 3)

Page 3 of 9

Context
Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.
Task:
Please complete the following:
-Create a YAML formatted pod manifest
/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output with these command line arguments: -lines 56 -F
-Create the pod with the kubect1 command using the YAML file created in the previous step
-When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json

-All of the files you need to work with have been created, empty, for your convenience

  1. See Explanation section for answer.

Answer(s): A

Explanation:

Solution:













Refer to Exhibit.



Task:
Create a new deployment for running.nginx with the following parameters;

-Run the deployment in the kdpd00201 namespace. The namespace has already been created
-Name the deployment frontend and configure with 4 replicas
-Configure the pod with a container image of lfccncf/nginx:1.13.7
-Set an environment variable of NGINX__PORT=8080 and also expose that port for the container above

  1. See Explanation section for answer.

Answer(s): A

Explanation:

Solution:









Refer to Exhibit.



Context
As a Kubernetes application developer you will often find yourself needing to update a running application.

Task:
Please complete the following:
-Update the app deployment in the kdpd00202 namespace with a maxSurge of 5% and a maxUnavailable of 2%
-Perform a rolling update of the web1 deployment, changing the Ifccncf/ngmx image version to 1.13
-Roll back the app deployment to the previous version

  1. See Explanation section for answer.

Answer(s): A

Explanation:

Solution:









Refer to Exhibit.



Context
You have been tasked with scaling an existing deployment for availability, and creating a service to expose the deployment within your infrastructure.

Task:
Start with the deployment named kdsn00101-deployment which has already been deployed to the namespace kdsn00101 . Edit it to:

-Add the func=webFrontEnd key/value label to the pod template metadata to identify the pod for the service definition
-Have 4 replicas
Next, create ana deploy in namespace kdsn00l01 a service that accomplishes the following:
-Exposes the service on TCP port 8080
-is mapped to me pods defined by the specification of kdsn00l01-deployment
-Is of type NodePort
-Has a name of cherry

  1. See Explanation section for answer.

Answer(s): A

Explanation:

Solution:









Page 3 of 9



Post your Comments and Discuss Linux Foundation CKAD exam with other Community members:

Ajay Kumar Yadav commented on December 03, 2024
Great insight.
INDIA
upvote

Ajay Kumar Yadav commented on December 03, 2024
informative
INDIA
upvote

Ajay Kumar Yadav commented on December 03, 2024
Very informative
INDIA
upvote

Alex Z commented on October 26, 2024
Great insight.
UNITED STATES
upvote

st commented on August 21, 2024
hope will get similar questions
Anonymous
upvote