Our pass rate is high to 98.9% and the similarity percentage between our CKA study guide and real exam is 90% based on our seven-year educating experience. Do you want achievements in the Linux-Foundation CKA exam in just one try? I am currently studying for the Linux-Foundation CKA exam. Latest Linux-Foundation CKA Test exam practice questions and answers, Try Linux-Foundation CKA Brain Dumps First.
Check CKA free dumps before getting the full version:
NEW QUESTION 1
Create a Kubernetes secret asfollows:
Name: super-secret
password: bob
Create a pod namedpod-secrets-via-file, using theredisImage, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env, using theredisImage, which exportspasswordas
CONFIDENTIAL
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 D.JPG
NEW QUESTION 2
Create a persistent volume with nameapp-data, of capacity2Giandaccess modeReadWriteMany. Thetype of volume ishostPathand itslocation is/srv/app-data.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
Persistent Volume
A persistent volume is a piece of storage in aKubernetes cluster. PersistentVolumes are a cluster-level resource like nodes, which don??t belong to any namespace. It is provisioned by the administrator and has a particular file size. This way, a developer deploying their app on Kubernetes need not knowthe underlying infrastructure. When the developer needs a certain amount of persistent storage for their application, the system administrator configures the cluster so that they consume the PersistentVolume provisioned in an easy way.
Creating PersistentVolume
kind: PersistentVolumeapiVersion: v1metadata:name:app-dataspec:capacity: # defines the capacity of PV we are creatingstorage:2Gi#the amount of storage we are tying to claimaccessModes: # defines the rights of the volumewe are creating-ReadWriteManyhostPath:path: "/srv/app-data" # path to which we are creating the volume
Challenge
Create a Persistent Volume namedapp-data, with access modeReadWriteMany, storage classname
shared,2Giof storage capacity and the host path/srv/app-data.
* 2. Save the file and create the persistent volume. Image for post
* 3. View the persistent volume.
Our persistent volume status is available meaning it is available and it has not been mounted yet. This status willchange when we mount the persistentVolume to a persistentVolumeClaim.
PersistentVolumeClaim
In a real ecosystem, a system admin will create the PersistentVolume then a developer will create a PersistentVolumeClaim which will be referenced in a pod. A PersistentVolumeClaim is created by specifying the minimum size and the access mode they require from the persistentVolume.
Challenge
Create a Persistent Volume Claim that requests the Persistent Volume we had created above. The claim should request 2Gi. Ensurethat the Persistent Volume Claim has the same storageClassName as the persistentVolume you had previously created.
kind: PersistentVolumeapiVersion: v1metadata:name:app-data spec:
accessModes:-ReadWriteManyresources:
requests:storage:2Gi storageClassName:shared
* 2. Save and create the pvc
njerry191@cloudshell:~(extreme-clone-2654111)$ kubect1 create -f app-data.yaml persistentvolumeclaim/app-data created
* 3. View the pvc Image for post
* 4. Let??s see what has changed in the pv we had initially created.
Image for post
Our status has now changed fromavailabletobound.
* 5. Create a new pod named myapp with image nginx that will be used to Mount the Persistent Volume Claim with the path /var/app/config.
Mounting a Claim
apiVersion: v1kind: Podmetadata:creationTimestamp: nullname: app-dataspec:volumes:- name:congigpvcpersistenVolumeClaim:claimName: app-datacontainers:- image: nginxname: appvolumeMounts:- mountPath: "/srv/app-data"name: configpvc
NEW QUESTION 3
Create a deployment spec file thatwill:
Launch 7 replicas of thenginxImage with the labelapp_runtime_stage=dev
deployment name:kual00201
Save a copy of this spec file to/opt/KUAL00201/spec_deployment.yaml (or/opt/KUAL00201/spec_deployment.json).
When you are done, clean up (delete)any new Kubernetes API object thatyou produced during this task.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\10 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\10 C.JPG
NEW QUESTION 4
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 5
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 6
Get list of all pods in all namespaces and write it to file ??/opt/pods-list.yaml??
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl get po ?Call-namespaces > /opt/pods-list.yaml
NEW QUESTION 7
List ??nginx-dev?? and ??nginx-prod?? pod and delete those pods
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubect1 get pods -o wide
kubectl delete po ??nginx-dev??kubectl delete po ??nginx-prod??
NEW QUESTION 8
Given a partially-functioningKubernetes cluster, identifysymptoms of failure on the cluster.
Determine the node, the failingservice, and take actions to bring upthe failed service and restore thehealth of the cluster. Ensure that anychanges are made permanently.
You cansshto the relevant Inodes (bk8s-master-0orbk8s-node-0) using:
[student@node-1] $ ssh<nodename>
You can assume elevatedprivileges on any node in thecluster with the followingcommand:
[student@nodename] $ | sudo ?Ci
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 D.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 E.JPG
NEW QUESTION 9
Create a pod namedkucc8with asingle app container for each of the
following images running inside(there may be between 1 and 4images specified): nginx + redis + memcached.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 B.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 D.JPG
NEW QUESTION 10
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 11
......
Recommend!! Get the Full CKA dumps in VCE and PDF From Downloadfreepdf.net, Welcome to Download: https://www.downloadfreepdf.net/CKA-pdf-download.html (New 48 Q&As Version)