SIMULATION
Create 2 nginx image pods in which one of them is labelled with env=prod and another one labelled with env=dev and verify the same.
Correct Answer. Check the answer in explanation.SIMULATION List all the pods showing name and namespace with a json path expression
Correct Answer. Check the answer in explanation.SIMULATION

Task
Scale the deployment presentation to 6 pods.
Correct Answer. Check the answer in explanation.SIMULATION
You must connect to the correct host.
Failure to do so may result in a zero score.
[candidate@base] $ ssh cka000037
Context
A legacy app needs to be integrated into the Kubernetes built-in logging architecture (i.e., kubectl logs). Adding a streaming co-located container is a good and common way to accomplish this requirement.
Task
Update the existing Deployment synergy-leverager, adding a co-located container named sidecar using the busybox:stable image to the existing Pod.
The new co-located container has to run the following command:
/bin/sh -c "tail -n+1 -f /var/log/synergy-leverager.log"
Use a volume mounted at /var/log to make the log file synergy-leverager.log available to the co-located container.
Do not modify the specification of the existing container other than adding the required volume mount.
Failure to do so may result in a reduced score.
Correct Answer. Check the answer in explanation.SIMULATION

Task
Scale the deployment webserver to 3 pods.
Correct Answer. Check the answer in explanation.SIMULATION
You must connect to the correct host. Failure to do so may result in a zero score. [candidate@base] $ ssh Cka000046
Task
First, create a new StorageClass named local-path for an existing provisioner named rancher.io/local-path .
Set the volume binding mode to WaitForFirstConsumer .
Not setting the volume binding mode or setting it to anything other than WaitForFirstConsumer may result in a reduced score.
Next, configure the StorageClass local-path as the default StorageClass .
Correct Answer. Check the answer in explanation.SIMULATION

Task
Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app-data .
Correct Answer. Check the answer in explanation.SIMULATION
You must connect to the correct host.
Failure to do so may result in a zero score.
[candidate@base] $ ssh Cka000022
Task
Reconfigure the existing Deployment front-end in namespace spline-reticulator to expose port 80/tcp of the existing container nginx .
Create a new Service named front-end-svc exposing the container port 80/tcp .
Configure the new Service to also expose the individual Pods via a NodePort .
Correct Answer. Check the answer in explanation.SIMULATION
List "nginx-dev" and "nginx-prod" pod and delete those pods
Correct Answer. Check the answer in explanation.SIMULATION
Create a pod as follows:
Name: mongo Using Image: mongo In a new Kubernetes namespace named: my-website
Correct Answer. Check the answer in explanation.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Linux Foundation exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CKA exam preparations and Linux Foundation certification application, do not hesitate to visit our Vcedump.com to find your solutions here.