ExamGecko
Home / Linux Foundation / CKA / List of questions
Ask Question

Linux Foundation CKA Practice Test - Questions Answers, Page 3

Add to Whishlist

List of questions

Question 21

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 22

Report Export Collapse

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.

Become a Premium Member for full access
  Unlock Premium Member

Question 23

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 24

Report Export Collapse

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.

Become a Premium Member for full access
  Unlock Premium Member

Question 25

Report Export Collapse

Create a namespace called 'development' and a pod with image nginx called nginx on this

namespace.

Become a Premium Member for full access
  Unlock Premium Member

Question 26

Report Export Collapse

Create a nginx pod with label env=test in engineering namespace

Become a Premium Member for full access
  Unlock Premium Member

Question 27

Report Export Collapse

Get list of all pods in all namespaces and write it to file "/opt/pods-list.yaml"

Become a Premium Member for full access
  Unlock Premium Member

Question 28

Report Export Collapse

Create a pod with image nginx called nginx and allow traffic on port 80

Become a Premium Member for full access
  Unlock Premium Member

Question 29

Report Export Collapse

Create a busybox pod that runs the command "env" and save the output to "envpod" file

Become a Premium Member for full access
  Unlock Premium Member

Question 30

Report Export Collapse

List pod logs named "frontend" and search for the pattern "started" and write it to a file "/opt/errorlogs"

Become a Premium Member for full access
  Unlock Premium Member
Total 67 questions
Go to page: of 7