Master the CKA Certified Kubernetes Administrator (CKA) Program content and be ready for exam day success quickly with this Pass4sure CKA test question. We guarantee it!We make it a reality and give you real CKA questions in our Linux-Foundation CKA braindumps.Latest 100% VALID Linux-Foundation CKA Exam Questions Dumps at below page. You can use our Linux-Foundation CKA braindumps and pass your exam.
Check CKA free dumps before getting the full version:
NEW QUESTION 1
From the pod labelname=cpu-utilizer, find podsrunning high CPU workloads and
write the name of the pod consumingmost CPU to thefile/opt/KUTR00102/KUTR00102.txt(which already exists).
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\16 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\16 C.JPG
NEW QUESTION 2
Print pod name and start time to ??/opt/pod-status?? file
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubect1 get pods -o=jsonpath='{range items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'
NEW QUESTION 3
A Kubernetes worker node, namedwk8s-node-0is in stateNotReady.Investigate why this is the case, andperform any appropriate steps tobring the node to aReadystate,ensuring that any changes are madepermanent.
You cansshto the failednode using:
[student@node-1] $ | sshWk8s-node-0
You can assume elevatedprivileges on the node with thefollowing command:
[student@w8ks-node-0] $ |sudo ?Ci
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 D.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 E.JPG
NEW QUESTION 4
Perform the following tasks:
Add an init container tohungry-bear(which has beendefined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
The init container should createan empty file named/workdir/calm.txt
If/workdir/calm.txtis notdetected, the pod should exit
Once the spec file has beenupdatedwith the init containerdefinition, the pod should becreated
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 D.JPG
NEW QUESTION 5
Get list of all the pods showing name and namespace with a jsonpath expression.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name'
, 'metadata.namespace']}"
NEW QUESTION 6
Create a busybox pod and add ??sleep 3600?? command
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c "sleep 3600"
NEW QUESTION 7
Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl create namespace development
kubectl run nginx --image=nginx --restart=Never -n development
NEW QUESTION 8
Create a pod that having 3 containers in it? (Multi-Container)
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
image=nginx, image=redis, image=consul Name nginx container as ??nginx-container?? Name redis container as ??redis-container?? Name consul container as ??consul-container??
Create a pod manifest file for a container and append container section for rest of the images
kubectl run multi-container --generator=run-pod/v1 --image=nginx -- dry-run -o yaml > multi-container.yaml
# then
vim multi-container.yaml apiVersion: v1
kind: Pod metadata: labels:
run: multi-container name: multi-container spec:
containers:
- image: nginx
name: nginx-container
- image: redis
name: redis-container
- image: consul
name: consul-container
restartPolicy: Always
NEW QUESTION 9
Create a pod that echo ??hello world?? and then exists. Have the pod deleted automatically when it??s completed
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl run busybox --image=busybox -it --rm --restart=Never -
/bin/sh -c 'echo hello world'
kubectl get po # You shouldn't see pod with the name "busybox"
NEW QUESTION 10
Create a pod as follows:
Name:mongo
Using Image:mongo
In anew Kubernetes namespacenamed:my-website
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\9 B.JPG
NEW QUESTION 11
Create a pod with image nginx called nginx and allow traffic on port 80
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectlrun nginx --image=nginx --restart=Never --port=80
NEW QUESTION 12
List the nginx pod with custom columns POD_NAME and POD_STATUS
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"
NEW QUESTION 13
Create a file:
/opt/KUCC00302/kucc00302.txtthatlists all pods that implement servicebazin namespacedevelopment.
The format of the file should be onepod name per line.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 D.JPG
NEW QUESTION 14
Create a nginx pod with label env=test in engineering namespace
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry-run -o yaml > nginx-pod.yaml
kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry-run -o yaml | kubectl create -nengineering-f ?C
YAML File: apiVersion: v1 kind: Pod metadata: name: nginx
namespace: engineering labels:
env: test spec: containers:
- name: nginx image: nginx
imagePullPolicy: IfNotPresent restartPolicy: Never
kubectl create -f nginx-pod.yaml
NEW QUESTION 15
Get IP address of the pod ?C ??nginx-dev??
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
Kubect1 get po -o wide Using JsonPath
kubect1 get pods -o=jsonpath='{range items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'
NEW QUESTION 16
......
100% Valid and Newest Version CKA Questions & Answers shared by Thedumpscentre.com, Get Full Dumps HERE: https://www.thedumpscentre.com/CKA-dumps/ (New 48 Q&As)