Linux Foundation CKA Practice Test - Questions Answers, Page 3
 Add to Whishlist
 
                            Add to Whishlist
                        List of questions
Question 21
 
                            
                            
                                Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.
You can ssh to the appropriate node using:
[student@node-1] $ ssh wk8s-node-1
You can assume elevated privileges on the node with the following command:
[student@wk8s-node-1] $ | sudo βi
Question 22
 
                            
                            
                                For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item.
Context
As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task
You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the --ignore-preflight-errors=all option.
Configure the node ik8s-master-O as a master node. .
Join the node ik8s-node-o to the cluster.
Question 23
 
                            
                            
                                Given a partially-functioning Kubernetes cluster, identify symptoms of failure on the cluster.
Determine the node, the failing service, and take actions to bring up the failed service and restore the health of the cluster. Ensure that any changes are made permanently.
You can ssh to the relevant I nodes (bk8s-master-0 or bk8s-node-0) using:
[student@node-1] $ ssh <nodename>
You can assume elevated privileges on any node in the cluster with the following command:
[student@nodename] $ | sudo βi
Question 24
 
                            
                            
                                Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadWriteMany.
The type of volume is hostPath and its location is /srv/app-data.
Question 25
 
                            
                            
                                Create a namespace called 'development' and a pod with image nginx called nginx on this
namespace.
Question 26
 
                            
                            
                                Create a nginx pod with label env=test in engineering namespace
Question 27
 
                            
                            
                                Get list of all pods in all namespaces and write it to file "/opt/pods-list.yaml"
Question 28
 
                            
                            
                                Create a pod with image nginx called nginx and allow traffic on port 80
Question 29
 
                            
                            
                                Create a busybox pod that runs the command "env" and save the output to "envpod" file
Question 30
 
                            
                            
                                List pod logs named "frontend" and search for the pattern "started" and write it to a file "/opt/errorlogs"
 
         Unlock Premium Member
  Unlock Premium Member
                                    

 
  
                                            
Question